Experiment: Try any C++17 compiler.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-06-21 22:38:17 -07:00
parent 590171e6aa
commit 5aaf96a382

View File

@ -6,7 +6,7 @@
#if !defined(PYBIND11_TYPE_CASTER_ODR_GUARD_ON) && !defined(PYBIND11_TYPE_CASTER_ODR_GUARD_OFF) \
&& (defined(_MSC_VER) || defined(PYBIND11_CPP20) \
|| (defined(PYBIND11_CPP17) && defined(__clang__)))
|| (defined(PYBIND11_CPP17) /* && defined(__clang__)*/))
# define PYBIND11_TYPE_CASTER_ODR_GUARD_ON
#endif
@ -18,6 +18,10 @@
#else
# if defined(__GNUC__) && !defined(PYBIND11_CPP20)
# pragma GCC diagnostic ignored "-Wsubobject-linkage"
# endif
# include "common.h"
# include "descr.h"
# include "typeid.h"