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 4a0a260 commit 23b3195Copy full SHA for 23b3195
include/tao/json/external/string_view.hpp
@@ -5,14 +5,16 @@
5
#define TAOCPP_INCLUDE_STRING_VIEW_HPP
6
7
#ifndef TAOCPP_USE_STD_STRING_VIEW
8
-#if __cplusplus >= 201703L
+#if( __cplusplus >= 201703L )
9
+#define TAOCPP_USE_STD_STRING_VIEW
10
+#elif defined( _MSC_VER ) && ( _MSC_VER >= 1910L )
11
#define TAOCPP_USE_STD_STRING_VIEW
12
#endif
13
14
15
16
#ifndef TAOCPP_USE_TS_STRING_VIEW
-#if( __cplusplus >= 201402L ) && ( ( __GNUC__ > 4 ) || ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 9 ) )
17
+#if( __cplusplus >= 201402L ) && defined( __GNUC__ ) && ( ( __GNUC__ > 4 ) || ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 9 ) )
18
#define TAOCPP_USE_TS_STRING_VIEW
19
20
0 commit comments