We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 03b025d + 5ae3a93 commit 82765efCopy full SHA for 82765ef
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