From 5bbb8f996be74f004ed183ba1b64afd57253f1ef Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 22 Dec 2021 15:18:34 -0800 Subject: [PATCH] Using new `const_name` instead of `_` (related to PR #3423). --- include/pybind11/detail/smart_holder_type_casters.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/pybind11/detail/smart_holder_type_casters.h b/include/pybind11/detail/smart_holder_type_casters.h index 98e322cdc..b6f26b966 100644 --- a/include/pybind11/detail/smart_holder_type_casters.h +++ b/include/pybind11/detail/smart_holder_type_casters.h @@ -538,7 +538,7 @@ struct make_constructor : private type_caster_base { // Any type, nothing s template struct smart_holder_type_caster : smart_holder_type_caster_load, smart_holder_type_caster_class_hooks { - static constexpr auto name = _(); + static constexpr auto name = const_name(); // static handle cast(T, ...) // is redundant (leads to ambiguous overloads). @@ -703,7 +703,7 @@ struct smart_holder_type_caster : smart_holder_type_caster_load, template struct smart_holder_type_caster> : smart_holder_type_caster_load, smart_holder_type_caster_class_hooks { - static constexpr auto name = _>(); + static constexpr auto name = const_name>(); static handle cast(const std::shared_ptr &src, return_value_policy policy, handle parent) { switch (policy) { @@ -760,7 +760,7 @@ struct smart_holder_type_caster> : smart_holder_type_caster_l template struct smart_holder_type_caster> : smart_holder_type_caster_load, smart_holder_type_caster_class_hooks { - static constexpr auto name = _>(); + static constexpr auto name = const_name>(); static handle cast(const std::shared_ptr &src, return_value_policy policy, handle parent) { @@ -780,7 +780,7 @@ struct smart_holder_type_caster> : smart_holder_type_ca template struct smart_holder_type_caster> : smart_holder_type_caster_load, smart_holder_type_caster_class_hooks { - static constexpr auto name = _>(); + static constexpr auto name = const_name>(); static handle cast(std::unique_ptr &&src, return_value_policy policy, handle parent) { if (policy != return_value_policy::automatic @@ -857,7 +857,7 @@ struct smart_holder_type_caster> : smart_holder_type_caste template struct smart_holder_type_caster> : smart_holder_type_caster_load, smart_holder_type_caster_class_hooks { - static constexpr auto name = _>(); + static constexpr auto name = const_name>(); static handle cast(std::unique_ptr &&src, return_value_policy policy, handle parent) {