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::any
1 parent 1a52a5c commit 18f2b5bCopy full SHA for 18f2b5b
examples/any.cpp
@@ -14,7 +14,17 @@
14
* BLOB is mapped to std::vector<char>.
15
*/
16
#include <sqlite_orm/sqlite_orm.h>
17
+#ifdef __has_include
18
+#if __has_include(<any>)
19
#include <any>
20
+#endif
21
22
+
23
+#if __cpp_lib_any >= 201606L
24
+#define ENABLE_THIS_EXAMPLE
25
26
27
+#ifdef ENABLE_THIS_EXAMPLE
28
#include <iostream>
29
#include <cstdio>
30
@@ -128,8 +138,10 @@ namespace sqlite_orm {
128
138
}
129
139
};
130
140
141
131
142
132
143
int main() {
144
133
145
struct Value {
134
146
int id = 0;
135
147
std::any value;
@@ -151,5 +163,6 @@ int main() {
151
163
cout << storage.dump(test) << endl;
152
164
153
165
cout << endl;
166
154
167
return 0;
155
168
0 commit comments