From c65d5dfaa80086f09983ccf38e098f437d7c6479 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sun, 14 Jul 2024 00:42:45 -0700 Subject: [PATCH] Systematically use `is_base_of>` in `property_cpp_function<>` specializations. --- include/pybind11/pybind11.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 547f377a7..f13f9c5b7 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -1635,8 +1635,8 @@ struct property_cpp_function< T, D, detail::enable_if_t< - detail::all_of, detail::type_caster>, - std::is_base_of, detail::make_caster>, + detail::all_of>, + std::is_base_of>, std::is_pointer>::value>> { using drp = typename std::remove_pointer::type; @@ -1683,8 +1683,8 @@ struct property_cpp_function< T, D, detail::enable_if_t< - detail::all_of, detail::type_caster>, - std::is_base_of, detail::type_caster>, + detail::all_of>, + std::is_base_of>, detail::none_of, std::is_array, detail::is_instantiation, @@ -1743,10 +1743,10 @@ struct property_cpp_function< T, D, detail::enable_if_t< - detail::all_of, detail::type_caster>, + detail::all_of>, detail::is_instantiation, - std::is_base_of, - detail::type_caster>>::value>> { + std::is_base_of>>::value>> { template = 0> static cpp_function readonly(PM, const handle &) {