mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 06:35:12 +00:00
Only enable std::optional if compiling in >= C++14 (#476)
This commit is contained in:
parent
44a69f78cf
commit
12edaaa66a
@ -22,7 +22,7 @@
|
||||
#pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
|
||||
#endif
|
||||
|
||||
#ifdef __has_include
|
||||
#if defined(PYBIND11_CPP14) && defined(__has_include)
|
||||
// std::optional
|
||||
# if __has_include(<optional>)
|
||||
# include <optional>
|
||||
|
Loading…
Reference in New Issue
Block a user