Skip to content

Commit 0b365ff

Browse files
committed
Support test macro for char8_t
1 parent b5a0ad8 commit 0b365ff

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

dev/functional/cxx_core_features.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
#define SQLITE_ORM_CONSTEVAL_SUPPORTED
6363
#endif
6464

65+
#if __cpp_char8_t >= 201811L
66+
#define SQLITE_ORM_CHAR8T_SUPPORTED
67+
#endif
68+
6569
#if __cpp_aggregate_paren_init >= 201902L
6670
#define SQLITE_ORM_AGGREGATE_PAREN_INIT_SUPPORTED
6771
#endif

dev/type_printer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace sqlite_orm {
5050
struct type_printer<T,
5151
std::enable_if_t<polyfill::conjunction<polyfill::negation<internal::is_any_of<T,
5252
wchar_t,
53-
#ifdef __cpp_char8_t
53+
#ifdef SQLITE_ORM_CHAR8T_SUPPORTED
5454
char8_t,
5555
#endif
5656
char16_t,

include/sqlite_orm/sqlite_orm.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ using std::nullptr_t;
9090
#define SQLITE_ORM_CONSTEVAL_SUPPORTED
9191
#endif
9292

93+
#if __cpp_char8_t >= 201811L
94+
#define SQLITE_ORM_CHAR8T_SUPPORTED
95+
#endif
96+
9397
#if __cpp_aggregate_paren_init >= 201902L
9498
#define SQLITE_ORM_AGGREGATE_PAREN_INIT_SUPPORTED
9599
#endif
@@ -751,7 +755,7 @@ namespace sqlite_orm {
751755
struct type_printer<T,
752756
std::enable_if_t<polyfill::conjunction<polyfill::negation<internal::is_any_of<T,
753757
wchar_t,
754-
#ifdef __cpp_char8_t
758+
#ifdef SQLITE_ORM_CHAR8T_SUPPORTED
755759
char8_t,
756760
#endif
757761
char16_t,

0 commit comments

Comments
 (0)