sqlite_modern_cpp | The C14 wrapper around sqlite library - forked from https
kandi X-RAY | sqlite_modern_cpp Summary
kandi X-RAY | sqlite_modern_cpp Summary
sqlite modern cpp wrapper.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sqlite_modern_cpp
sqlite_modern_cpp Key Features
sqlite_modern_cpp Examples and Code Snippets
Community Discussions
Trending Discussions on sqlite_modern_cpp
QUESTION
We have a module that pulls in 3rd-party, specifically sqlite_modern_cpp
although I don't think that is particularly important. What is important is that code uses C++ feature macros and (specifically) tests for __cpp_lib_uncaught_exceptions
to know whether std::uncaught_exceptions
is defined.
So far so good, except that we are now looking to change our C++ standard from C++14 to C++17. On iOS builds (don't know fully about other targets) this is suddenly defined. However, we target a minimum version of iOS as 9.3 and, with that, the compiler returns an error to say the minimum value of iOS required is 10.0.
I would prefer, if possible, not to touch the third party code, so my ideal solution to this would be to tell the compiler not to defined __cpp_lib_uncaught_exceptions
, so it would fall back to the previous solution. Is there a clean way to do that?
ANSWER
Answered 2021-Aug-03 at 11:25Feature test macros are just normal macros, which you can #undef
. Include first to define the macro, then undef, then include the library.
sqlite_modern_cpp
is a header only library, so this should cause no problems.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sqlite_modern_cpp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page