@@ -16648,7 +16648,7 @@ inline constexpr bool std::ranges::enable_borrowed_range<sqlite_orm::internal::m
16648
16648
#ifndef SQLITE_ORM_IMPORT_STD_MODULE
16649
16649
#include <utility> // std::move, std::remove_cvref
16650
16650
#include <functional> // std::reference_wrapper
16651
- #if defined(SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED) && defined( SQLITE_ORM_CPP20_RANGES_SUPPORTED)
16651
+ #ifdef SQLITE_ORM_CPP20_RANGES_SUPPORTED
16652
16652
#include <ranges> // std::ranges::view_interface
16653
16653
#endif
16654
16654
#endif
@@ -16674,7 +16674,6 @@ inline constexpr bool std::ranges::enable_borrowed_range<sqlite_orm::internal::m
16674
16674
16675
16675
// #include "util.h"
16676
16676
16677
- #ifdef SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED
16678
16677
namespace sqlite_orm::internal {
16679
16678
16680
16679
template<class ColResult, class DBOs>
@@ -16733,6 +16732,11 @@ namespace sqlite_orm::internal {
16733
16732
friend bool operator==(const result_set_iterator& it, const result_set_sentinel_t&) noexcept {
16734
16733
return sqlite3_data_count(it.stmt.get()) == 0;
16735
16734
}
16735
+ #ifndef SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED
16736
+ friend bool operator!=(const result_set_iterator& it, const result_set_sentinel_t& s) noexcept {
16737
+ return !(it == s);
16738
+ }
16739
+ #endif
16736
16740
16737
16741
private:
16738
16742
void step() {
@@ -16749,7 +16753,6 @@ namespace sqlite_orm::internal {
16749
16753
statement_finalizer stmt;
16750
16754
};
16751
16755
}
16752
- #endif
16753
16756
16754
16757
// #include "ast_iterator.h"
16755
16758
@@ -16761,7 +16764,6 @@ namespace sqlite_orm::internal {
16761
16764
16762
16765
// #include "storage_lookup.h"
16763
16766
16764
- #ifdef SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED
16765
16767
namespace sqlite_orm::internal {
16766
16768
/*
16767
16769
* A C++ view over a result set of a select statement, returned by `storage_t::iterate()`.
@@ -16790,7 +16792,7 @@ namespace sqlite_orm::internal {
16790
16792
16791
16793
auto begin() {
16792
16794
const auto& exprDBOs = db_objects_for_expression(this->db_objects.get(), this->expression);
16793
- using ExprDBOs = std ::remove_cvref_t<decltype(exprDBOs)>;
16795
+ using ExprDBOs = polyfill ::remove_cvref_t<decltype(exprDBOs)>;
16794
16796
// note: Select can be `select_t` or `with_t`
16795
16797
using select_type = polyfill::detected_or_t<expression_type, expression_type_t, expression_type>;
16796
16798
using column_result_type = column_result_of_t<ExprDBOs, select_type>;
@@ -16825,7 +16827,6 @@ namespace sqlite_orm::internal {
16825
16827
template<class Select, class DBOs>
16826
16828
inline constexpr bool std::ranges::enable_borrowed_range<sqlite_orm::internal::result_set_view<Select, DBOs>> = true;
16827
16829
#endif
16828
- #endif
16829
16830
16830
16831
// #include "ast_iterator.h"
16831
16832
@@ -23689,7 +23690,6 @@ namespace sqlite_orm {
23689
23690
}
23690
23691
#endif
23691
23692
23692
- #ifdef SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED
23693
23693
/*
23694
23694
* Iterate over a result set of a select statement.
23695
23695
*
@@ -23722,7 +23722,6 @@ namespace sqlite_orm {
23722
23722
return {this->db_objects, std::move(connection), std::move(expression)};
23723
23723
}
23724
23724
#endif
23725
- #endif
23726
23725
23727
23726
#ifdef SQLITE_ORM_CPP23_GENERATOR_SUPPORTED
23728
23727
/*
0 commit comments