@@ -778,7 +778,7 @@ template <typename T1, typename T2> struct is_copy_constructible<std::pair<T1, T
778778template <typename type> class type_caster_base : public type_caster_generic {
779779 using itype = intrinsic_t <type>;
780780public:
781- static constexpr auto name = type_descr( _<type>() );
781+ static constexpr auto name = _<type>();
782782
783783 type_caster_base () : type_caster_base(typeid (type)) { }
784784 explicit type_caster_base (const std::type_info &info) : type_caster_generic(info) { }
@@ -900,7 +900,7 @@ template <typename type> class type_caster<std::reference_wrapper<type>> {
900900 protected: \
901901 type value; \
902902 public: \
903- static constexpr auto name = type_descr( py_name) ; \
903+ static constexpr auto name = py_name; \
904904 template <typename T_, enable_if_t <std::is_same<type, remove_cv_t <T_>>::value, int > = 0 > \
905905 static handle cast (T_ *src, return_value_policy policy, handle parent) { \
906906 if (!src) return none ().release (); \
@@ -1049,7 +1049,7 @@ template <> class type_caster<void> : public type_caster<void_type> {
10491049
10501050 template <typename T> using cast_op_type = void *&;
10511051 operator void *&() { return value; }
1052- static constexpr auto name = type_descr( _(" capsule" ) );
1052+ static constexpr auto name = _(" capsule" );
10531053private:
10541054 void *value = nullptr ;
10551055};
@@ -1289,7 +1289,7 @@ template <typename CharT> struct type_caster<CharT, enable_if_t<is_std_char_type
12891289 return value[0 ];
12901290 }
12911291
1292- static constexpr auto name = type_descr( _(PYBIND11_STRING_NAME) );
1292+ static constexpr auto name = _(PYBIND11_STRING_NAME);
12931293 template <typename _T> using cast_op_type = remove_reference_t <pybind11::detail::cast_op_type<_T>>;
12941294};
12951295
@@ -1314,9 +1314,7 @@ template <template<typename...> class Tuple, typename... Ts> class tuple_caster
13141314 return cast_impl (std::forward<T>(src), policy, parent, indices{});
13151315 }
13161316
1317- static constexpr auto name = type_descr(
1318- _ (" Tuple[" ) + detail::concat(make_caster<Ts>::name...) + _(" ]" )
1319- );
1317+ static constexpr auto name = _(" Tuple[" ) + concat(make_caster<Ts>::name...) + _(" ]" );
13201318
13211319 template <typename T> using cast_op_type = type;
13221320
@@ -1826,7 +1824,7 @@ class argument_loader {
18261824 static constexpr bool has_kwargs = kwargs_pos < 0 ;
18271825 static constexpr bool has_args = args_pos < 0 ;
18281826
1829- static constexpr auto arg_names = detail:: concat(make_caster<Args>::name...);
1827+ static constexpr auto arg_names = concat(type_descr( make_caster<Args>::name) ...);
18301828
18311829 bool load_args (function_call &call) {
18321830 return load_impl_sequence (call, indices{});
0 commit comments