SqliteModernCpp / sqlite_modern_cpp

The C++14 wrapper around sqlite library
MIT License
886 stars 154 forks source link

Don't include experimental/optional if on Apple clang 11 #192

Closed shaglund closed 4 years ago

shaglund commented 4 years ago

In Apple clang 11 (Xcode 11) experimental/optional emits a warning that it has been removed, i.e building with xcode 11 fails as it seems experimental::optional is available. This PR fixes that by not setting MODERN_SQLITE_EXPERIMENTAL_OPTIONAL_SUPPORT if building with Apple clang 11 or above.

zauguin commented 4 years ago

@shaglund Thank you.