File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 53
53
#endif
54
54
55
55
namespace sqlite {
56
+
57
+ // std::optional support for NULL values
58
+ #ifdef MODERN_SQLITE_STD_OPTIONAL_SUPPORT
59
+ #ifdef MODERN_SQLITE_EXPERIMENTAL_OPTIONAL_SUPPORT
60
+ template <class T >
61
+ using optional = std::experimental::optional<T>;
62
+ #else
63
+ template <class T >
64
+ using optional = std::optional<T>;
65
+ #endif
66
+ #endif
67
+
56
68
class database ;
57
69
class database_binder ;
58
70
@@ -247,13 +259,6 @@ namespace sqlite {
247
259
248
260
249
261
#ifdef MODERN_SQLITE_STD_OPTIONAL_SUPPORT
250
- #ifdef MODERN_SQLITE_EXPERIMENTAL_OPTIONAL_SUPPORT
251
- template <class T >
252
- using optional = std::experimental::optional<T>;
253
- #else
254
- template <class T >
255
- using optional = std::optional<T>;
256
- #endif
257
262
template <typename OptionalT> friend database_binder& operator <<(database_binder& db, const optional<OptionalT>& val);
258
263
template <typename OptionalT> friend void get_col_from_db (database_binder& db, int inx, optional<OptionalT>& o);
259
264
#endif
You can’t perform that action at this time.
0 commit comments