@@ -777,7 +777,7 @@ template <typename T1, typename T2> struct is_copy_constructible<std::pair<T1, T
777777template <typename type> class type_caster_base : public type_caster_generic {
778778 using itype = intrinsic_t <type>;
779779public:
780- static constexpr auto name = type_descr( _<type>() );
780+ static constexpr auto name = _<type>();
781781
782782 type_caster_base () : type_caster_base(typeid (type)) { }
783783 explicit type_caster_base (const std::type_info &info) : type_caster_generic(info) { }
@@ -899,7 +899,7 @@ template <typename type> class type_caster<std::reference_wrapper<type>> {
899899 protected: \
900900 type value; \
901901 public: \
902- static constexpr auto name = type_descr( py_name) ; \
902+ static constexpr auto name = py_name; \
903903 template <typename T_, enable_if_t <std::is_same<type, remove_cv_t <T_>>::value, int > = 0 > \
904904 static handle cast (T_ *src, return_value_policy policy, handle parent) { \
905905 if (!src) return none ().release (); \
@@ -1048,7 +1048,7 @@ template <> class type_caster<void> : public type_caster<void_type> {
10481048
10491049 template <typename T> using cast_op_type = void *&;
10501050 operator void *&() { return value; }
1051- static constexpr auto name = type_descr( _(" capsule" ) );
1051+ static constexpr auto name = _(" capsule" );
10521052private:
10531053 void *value = nullptr ;
10541054};
@@ -1288,7 +1288,7 @@ template <typename CharT> struct type_caster<CharT, enable_if_t<is_std_char_type
12881288 return value[0 ];
12891289 }
12901290
1291- static constexpr auto name = type_descr( _(PYBIND11_STRING_NAME) );
1291+ static constexpr auto name = _(PYBIND11_STRING_NAME);
12921292 template <typename _T> using cast_op_type = remove_reference_t <pybind11::detail::cast_op_type<_T>>;
12931293};
12941294
@@ -1313,9 +1313,7 @@ template <template<typename...> class Tuple, typename... Ts> class tuple_caster
13131313 return cast_impl (std::forward<T>(src), policy, parent, indices{});
13141314 }
13151315
1316- static constexpr auto name = type_descr(
1317- _ (" Tuple[" ) + detail::concat(make_caster<Ts>::name...) + _(" ]" )
1318- );
1316+ static constexpr auto name = _(" Tuple[" ) + concat(make_caster<Ts>::name...) + _(" ]" );
13191317
13201318 template <typename T> using cast_op_type = type;
13211319
@@ -1822,7 +1820,7 @@ class argument_loader {
18221820 static constexpr bool has_kwargs = kwargs_pos < 0 ;
18231821 static constexpr bool has_args = args_pos < 0 ;
18241822
1825- static constexpr auto arg_names = detail:: concat(make_caster<Args>::name...);
1823+ static constexpr auto arg_names = concat(type_descr( make_caster<Args>::name) ...);
18261824
18271825 bool load_args (function_call &call) {
18281826 return load_impl_sequence (call, indices{});
0 commit comments