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 e0e3a22 commit 6c95d0aCopy full SHA for 6c95d0a
hdr/sqlite_modern_cpp/type_wrapper.h
@@ -4,14 +4,19 @@
4
#include <string>
5
#include <memory>
6
#include <vector>
7
-#ifdef __cplusplus >= 201703 && __has_include(<string_view>)
+#ifdef __has_include
8
+#if __cplusplus >= 201703 && __has_include(<string_view>)
9
#include <string_view>
10
#define STR_REF std::string_view
11
#define U16STR_REF std::u16string_view
12
#else
13
#define STR_REF std::string
14
#define U16STR_REF std::u16string
15
#endif
16
+#else
17
+#define STR_REF std::string
18
+#define U16STR_REF std::u16string
19
+#endif
20
#ifdef __has_include
21
#if __cplusplus > 201402 && __has_include(<optional>)
22
#define MODERN_SQLITE_STD_OPTIONAL_SUPPORT
0 commit comments