Commit 12edaaa6 by Jason Rhinelander Committed by Wenzel Jakob

Only enable std::optional if compiling in >= C++14 (#476)

parent 44a69f78
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment