Skip to content

Commit 533e5ad

Browse files
committed
Restoring defined(PYBIND11_CPP20) in common.h
1 parent e263cda commit 533e5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ struct is_template_base_of_impl {
822822
/// Check if a template is the base of a type. For example:
823823
/// `is_template_base_of<Base, T>` is true if `struct T : Base<U> {}` where U can be anything
824824
template <template <typename...> class Base, typename T>
825-
#if !defined(_MSC_VER) // Sadly, all MSVC versions incl. 2022 need this.
825+
#if defined(PYBIND11_CPP20) || !defined(_MSC_VER) // Sadly, all MSVC versions incl. 2022 need this.
826826
using is_template_base_of
827827
= decltype(is_template_base_of_impl<Base>::check((intrinsic_t<T> *) nullptr));
828828
#else

0 commit comments

Comments
 (0)