Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 7ca5200

Browse files
committed
Updated very minor things
1 parent 858dc32 commit 7ca5200

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dev/function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ namespace sqlite_orm {
161161
template<size_t I, class PointerArg>
162162
constexpr bool is_same_pvt_v<I, PointerArg, nullptr_t, polyfill::void_t<typename PointerArg::tag>> = true;
163163

164-
#if __cplusplus >= 201703L // using C++17 or higher
164+
#if __cplusplus >= 201703L // C++17 or later
165165
template<size_t I, const char* PointerArg, const char* Binding>
166166
SQLITE_ORM_CONSTEVAL bool assert_same_pointer_type() {
167167
constexpr bool valid = Binding == PointerArg;

include/sqlite_orm/sqlite_orm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9805,7 +9805,7 @@ namespace sqlite_orm {
98059805
template<size_t I, class PointerArg>
98069806
constexpr bool is_same_pvt_v<I, PointerArg, nullptr_t, polyfill::void_t<typename PointerArg::tag>> = true;
98079807

9808-
#if __cplusplus >= 201703L // using C++17 or higher
9808+
#if __cplusplus >= 201703L // C++17 or later
98099809
template<size_t I, const char* PointerArg, const char* Binding>
98109810
SQLITE_ORM_CONSTEVAL bool assert_same_pointer_type() {
98119811
constexpr bool valid = Binding == PointerArg;

tests/operators/arithmetic_operators.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ TEST_CASE("Arithmetic operators") {
3535
}
3636
}
3737
{ // +
38-
auto rows = storage.select(columns(c(&Object::nameLen) + 1000));
38+
auto rows = storage.select(c(&Object::nameLen) + 1000);
3939
for(size_t i = 0; i < rows.size(); ++i) {
4040
auto& row = rows[i];
4141
auto& name = names[i];
42-
REQUIRE(int(std::get<0>(row)) == name.length() + 1000);
42+
REQUIRE(int(row) == name.length() + 1000);
4343
}
4444
}
4545
{ // ||
@@ -71,11 +71,11 @@ TEST_CASE("Arithmetic operators") {
7171
}
7272
{ // ||
7373
std::string suffix = "ototo";
74-
auto rows = storage.select(columns(conc(&Object::name, suffix)));
74+
auto rows = storage.select(conc(&Object::name, suffix));
7575
for(size_t i = 0; i < rows.size(); ++i) {
7676
auto& row = rows[i];
7777
auto& name = names[i];
78-
REQUIRE(std::get<0>(row) == name + suffix);
78+
REQUIRE(row == name + suffix);
7979
}
8080
}
8181
{ // different

0 commit comments

Comments
 (0)