We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b025d commit 5ae3a93Copy full SHA for 5ae3a93
include/cxx.h
@@ -48,7 +48,7 @@ class String final {
48
String(const char *, std::size_t);
49
String(const char16_t *);
50
String(const char16_t *, std::size_t);
51
-#if __cplusplus >= 202002L
+#ifdef __cpp_char8_t
52
String(const char8_t *s);
53
String(const char8_t *s, std::size_t len);
54
#endif
src/cxx.cc
@@ -130,7 +130,7 @@ String::String(const char *s, std::size_t len) {
130
len);
131
}
132
133
134
String::String(const char8_t *s) : String(reinterpret_cast<const char *>(s)) {}
135
136
String::String(const char8_t *s, std::size_t len)
0 commit comments