Changing _MSC_VER guard to < 1910 (dropping MSVC 2015).

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-02-11 16:53:46 -08:00
parent 522c59ceb2
commit ed784f1083

View File

@ -81,10 +81,8 @@
# error pybind11 requires gcc 4.8 or newer # error pybind11 requires gcc 4.8 or newer
# endif # endif
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
// Pybind hits various compiler bugs in 2015u2 and earlier, and also makes use of some stl features # if _MSC_VER < 1910
// (e.g. std::negation) added in 2015u3: # error pybind11 2.10+ requires MSVC 2017 or newer
# if _MSC_FULL_VER < 190024210
# error pybind11 requires MSVC 2015 update 3 or newer
# endif # endif
#endif #endif