diff --git a/include/pybind11/stl.h b/include/pybind11/stl.h index 3d38b5397..535eb4951 100644 --- a/include/pybind11/stl.h +++ b/include/pybind11/stl.h @@ -32,9 +32,7 @@ // std::experimental::optional (but not allowed in c++11 mode) # if defined(PYBIND11_CPP14) && __has_include() # include -# if __cpp_lib_experimental_optional // just in case -# define PYBIND11_HAS_EXP_OPTIONAL 1 -# endif +# define PYBIND11_HAS_EXP_OPTIONAL 1 # endif // std::variant # if defined(PYBIND11_CPP17) && __has_include()