Open Superlokkus opened 4 years ago
BTW: a simple add_compile_definitions(MODERN_SQLITE_STD_OPTIONAL_SUPPORT)
fixed the issue, so I guess the preprocessor compiler support discovery is flawed.
no it is an experimental feature (at least in the latest dev) so you need to enable it explicitly
Usage of
std::optional
and the<< operator
will compile fine with gcc/linux but will fail with a template error when tried to be compiled with MSVC 14.2/ Visual Studio 2019:I prepared a simple code and project to reproduce it:
either
or look simple code is:
will fail with
Besides some warnings about
Working around the issue with
unique_ptr
works, I guess only some overload where forgotten, I assume the same is true forstd::variant