Similar to pybind/pybind11#4918: continue to be very specific.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2023-12-01 22:29:58 -08:00
parent d373f1641e
commit 3d39f2939a

View File

@ -47,7 +47,8 @@ PYBIND11_NAMESPACE_BEGIN(detail)
&& !defined(__INTEL_COMPILER) \
&& (!defined(_MSC_VER) \
|| (_MSC_VER >= 1920 /* MSVC 2019 or newer */ \
&& (_MSC_FULL_VER != 193732825 || defined(PYBIND11_CPP20))))
&& (_MSC_FULL_VER < 193732825 || _MSC_FULL_VER > 193732826 \
|| defined(PYBIND11_CPP20))))
# define PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD
#endif