Skip to content

Commit f40b487

Browse files
committed
Gate iterator mapped-ref static checks for clang-14.
Skip storage_iterate_mapped_ref static assertions on older clang where table-reference iterate overloads are unavailable. Made-with: Cursor
1 parent c67aae7 commit f40b487

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/static_tests/iterator_t.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,15 @@ TEST_CASE("can view and iterate mapped") {
179179

180180
#ifdef SQLITE_ORM_CPP20_CONCEPTS_SUPPORTED
181181
STATIC_REQUIRE(storage_iterate_mapped<storage_type, Object>);
182+
#if !defined(__clang__) || (__clang_major__ >= 15)
182183
STATIC_REQUIRE(storage_iterate_mapped_ref<storage_type, object_table, Object>);
184+
#endif
183185
#ifdef SQLITE_ORM_WITH_CPP20_ALIASES
186+
#if !defined(__clang__) || (__clang_major__ >= 15)
184187
STATIC_REQUIRE(storage_iterate_mapped_ref<storage_type, object_alias, Object>);
185188
#endif
186189
#endif
190+
#endif
187191

188192
#ifdef SQLITE_ORM_CPP23_GENERATOR_SUPPORTED
189193
STATIC_REQUIRE(storage_yield_mapped<storage_type, Object, Object>);

0 commit comments

Comments
 (0)