Skip to content

Commit 2479c8b

Browse files
author
jopublay
committed
Type trait is_character only has char8_t from c++10
1 parent c3ff6b0 commit 2479c8b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

utf42.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ namespace utf42 {
149149
struct is_character : std::bool_constant<
150150
std::is_same_v<T, char> ||
151151
std::is_same_v<T, wchar_t> ||
152+
#if __cplusplus >= 202002L
152153
std::is_same_v<T, char8_t> ||
154+
#endif
153155
std::is_same_v<T, char16_t> ||
154156
std::is_same_v<T, char32_t>
155157
> {

0 commit comments

Comments
 (0)