File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,9 @@ namespace hat {
173173
174174 LIBHAT_DEFINE_FIXED_STRING (fixed_string, char )
175175 LIBHAT_DEFINE_FIXED_STRING(wfixed_string, wchar_t )
176+ #ifdef __cpp_lib_char8_t
176177 LIBHAT_DEFINE_FIXED_STRING (u8fixed_string, char8_t )
178+ #endif
177179 LIBHAT_DEFINE_FIXED_STRING (u16fixed_string, char16_t )
178180 LIBHAT_DEFINE_FIXED_STRING(u32fixed_string, char32_t )
179181
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ namespace hat {
1515 template <hat::wfixed_string str>
1616 using wstring_literal = basic_string_literal<str>;
1717
18+ #ifdef __cpp_lib_char8_t
1819 template <hat::u8fixed_string str>
1920 using u8string_literal = basic_string_literal<str>;
21+ #endif
2022
2123 template <hat::u16fixed_string str>
2224 using u16string_literal = basic_string_literal<str>;
@@ -37,10 +39,12 @@ namespace hat::literals::string_literals {
3739 return wstring_literal<str>();
3840 }
3941
42+ #ifdef __cpp_lib_char8_t
4043 template <hat::u8fixed_string str>
4144 consteval auto operator " " _u8s() noexcept {
4245 return u8string_literal<str>();
4346 }
47+ #endif
4448
4549 template <hat::u16fixed_string str>
4650 consteval auto operator " " _u16s() noexcept {
You can’t perform that action at this time.
0 commit comments