We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
defined(PYBIND11_CPP20)
1 parent e263cda commit 533e5adCopy full SHA for 533e5ad
include/pybind11/detail/common.h
@@ -822,7 +822,7 @@ struct is_template_base_of_impl {
822
/// Check if a template is the base of a type. For example:
823
/// `is_template_base_of<Base, T>` is true if `struct T : Base<U> {}` where U can be anything
824
template <template <typename...> class Base, typename T>
825
-#if !defined(_MSC_VER) // Sadly, all MSVC versions incl. 2022 need this.
+#if defined(PYBIND11_CPP20) || !defined(_MSC_VER) // Sadly, all MSVC versions incl. 2022 need this.
826
using is_template_base_of
827
= decltype(is_template_base_of_impl<Base>::check((intrinsic_t<T> *) nullptr));
828
#else
0 commit comments