File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ error is raised if the compiler does not meet the requirements:
411
411
412
412
* GCC >= 4.8
413
413
* clang >= 3.3 (appleclang >= 5.0)
414
- * MSVC >= 2017
414
+ * MSVC >= 2015u3
415
415
* Intel C++ >= 15.0
416
416
417
417
Original file line number Diff line number Diff line change @@ -822,9 +822,7 @@ struct is_template_base_of_impl {
822
822
// / Check if a template is the base of a type. For example:
823
823
// / `is_template_base_of<Base, T>` is true if `struct T : Base<U> {}` where U can be anything
824
824
template <template <typename ...> class Base , typename T>
825
- #if defined(PYBIND11_CPP20) || !defined(_MSC_VER) \
826
- || _MSC_VER > 1930 /* Increment as needed, let MS know please. */
827
- // https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros
825
+ #if defined(PYBIND11_CPP20) || !defined(_MSC_VER) // Sadly, all MSVC versions incl. 2022 need this.
828
826
using is_template_base_of
829
827
= decltype(is_template_base_of_impl<Base>::check((intrinsic_t <T> *) nullptr ));
830
828
#else
You can’t perform that action at this time.
0 commit comments