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.
std::string_view
1 parent 9f31491 commit d046eeaCopy full SHA for d046eea
include/yaml-cpp/node/convert.h
@@ -18,7 +18,7 @@
18
#include <valarray>
19
#include <vector>
20
21
-#if __cplusplus >= 201703L
+#if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
22
#include <string_view>
23
#endif
24
@@ -93,7 +93,7 @@ struct convert<char[N]> {
93
static Node encode(const char* rhs) { return Node(rhs); }
94
};
95
96
97
template <>
98
struct convert<std::string_view> {
99
static Node encode(std::string_view rhs) { return Node(std::string(rhs)); }
0 commit comments