@@ -16414,7 +16414,7 @@ inline constexpr bool std::ranges::enable_borrowed_range<sqlite_orm::internal::m
16414
16414
#ifndef SQLITE_ORM_IMPORT_STD_MODULE
16415
16415
#include <utility> // std::move, std::remove_cvref
16416
16416
#include <functional> // std::reference_wrapper
16417
- #if defined(SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED) && defined( SQLITE_ORM_CPP20_RANGES_SUPPORTED)
16417
+ #ifdef SQLITE_ORM_CPP20_RANGES_SUPPORTED
16418
16418
#include <ranges> // std::ranges::view_interface
16419
16419
#endif
16420
16420
#endif
@@ -16440,7 +16440,6 @@ inline constexpr bool std::ranges::enable_borrowed_range<sqlite_orm::internal::m
16440
16440
16441
16441
// #include "util.h"
16442
16442
16443
- #ifdef SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED
16444
16443
namespace sqlite_orm::internal {
16445
16444
16446
16445
template<class ColResult, class DBOs>
@@ -16499,6 +16498,11 @@ namespace sqlite_orm::internal {
16499
16498
friend bool operator==(const result_set_iterator& it, const result_set_sentinel_t&) noexcept {
16500
16499
return sqlite3_data_count(it.stmt.get()) == 0;
16501
16500
}
16501
+ #ifndef SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED
16502
+ friend bool operator!=(const result_set_iterator& it, const result_set_sentinel_t& s) noexcept {
16503
+ return !(it == s);
16504
+ }
16505
+ #endif
16502
16506
16503
16507
private:
16504
16508
void step() {
@@ -16515,7 +16519,6 @@ namespace sqlite_orm::internal {
16515
16519
statement_finalizer stmt;
16516
16520
};
16517
16521
}
16518
- #endif
16519
16522
16520
16523
// #include "ast_iterator.h"
16521
16524
@@ -16527,7 +16530,6 @@ namespace sqlite_orm::internal {
16527
16530
16528
16531
// #include "storage_lookup.h"
16529
16532
16530
- #ifdef SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED
16531
16533
namespace sqlite_orm::internal {
16532
16534
/*
16533
16535
* A C++ view over a result set of a select statement, returned by `storage_t::iterate()`.
@@ -16556,7 +16558,7 @@ namespace sqlite_orm::internal {
16556
16558
16557
16559
auto begin() {
16558
16560
const auto& exprDBOs = db_objects_for_expression(this->db_objects.get(), this->expression);
16559
- using ExprDBOs = std ::remove_cvref_t<decltype(exprDBOs)>;
16561
+ using ExprDBOs = polyfill ::remove_cvref_t<decltype(exprDBOs)>;
16560
16562
// note: Select can be `select_t` or `with_t`
16561
16563
using select_type = polyfill::detected_or_t<expression_type, expression_type_t, expression_type>;
16562
16564
using column_result_type = column_result_of_t<ExprDBOs, select_type>;
@@ -16591,7 +16593,6 @@ namespace sqlite_orm::internal {
16591
16593
template<class Select, class DBOs>
16592
16594
inline constexpr bool std::ranges::enable_borrowed_range<sqlite_orm::internal::result_set_view<Select, DBOs>> = true;
16593
16595
#endif
16594
- #endif
16595
16596
16596
16597
// #include "ast_iterator.h"
16597
16598
@@ -23411,7 +23412,6 @@ namespace sqlite_orm {
23411
23412
}
23412
23413
#endif
23413
23414
23414
- #ifdef SQLITE_ORM_DEFAULT_COMPARISONS_SUPPORTED
23415
23415
/*
23416
23416
* Iterate over a result set of a select statement.
23417
23417
*
@@ -23444,7 +23444,6 @@ namespace sqlite_orm {
23444
23444
return {this->db_objects, std::move(connection), std::move(expression)};
23445
23445
}
23446
23446
#endif
23447
- #endif
23448
23447
23449
23448
#ifdef SQLITE_ORM_CPP23_GENERATOR_SUPPORTED
23450
23449
/*
0 commit comments