@@ -703,7 +703,7 @@ struct smart_holder_type_caster : smart_holder_type_caster_load<T>,
703
703
template <typename T>
704
704
struct smart_holder_type_caster <std::shared_ptr<T>> : smart_holder_type_caster_load<T>,
705
705
smart_holder_type_caster_class_hooks {
706
- static constexpr auto name = const_name<std::shared_ptr<T> >();
706
+ static constexpr auto name = const_name<T >();
707
707
708
708
static handle cast (const std::shared_ptr<T> &src, return_value_policy policy, handle parent) {
709
709
switch (policy) {
@@ -760,7 +760,7 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
760
760
template <typename T>
761
761
struct smart_holder_type_caster <std::shared_ptr<T const >> : smart_holder_type_caster_load<T>,
762
762
smart_holder_type_caster_class_hooks {
763
- static constexpr auto name = const_name<std::shared_ptr<T const > >();
763
+ static constexpr auto name = const_name<T >();
764
764
765
765
static handle
766
766
cast (const std::shared_ptr<T const > &src, return_value_policy policy, handle parent) {
@@ -780,7 +780,7 @@ struct smart_holder_type_caster<std::shared_ptr<T const>> : smart_holder_type_ca
780
780
template <typename T, typename D>
781
781
struct smart_holder_type_caster <std::unique_ptr<T, D>> : smart_holder_type_caster_load<T>,
782
782
smart_holder_type_caster_class_hooks {
783
- static constexpr auto name = const_name<std::unique_ptr<T, D> >();
783
+ static constexpr auto name = const_name<T >();
784
784
785
785
static handle cast (std::unique_ptr<T, D> &&src, return_value_policy policy, handle parent) {
786
786
if (policy != return_value_policy::automatic
@@ -857,7 +857,7 @@ struct smart_holder_type_caster<std::unique_ptr<T, D>> : smart_holder_type_caste
857
857
template <typename T, typename D>
858
858
struct smart_holder_type_caster <std::unique_ptr<T const , D>>
859
859
: smart_holder_type_caster_load<T>, smart_holder_type_caster_class_hooks {
860
- static constexpr auto name = const_name<std::unique_ptr<T const , D> >();
860
+ static constexpr auto name = const_name<T >();
861
861
862
862
static handle
863
863
cast (std::unique_ptr<T const , D> &&src, return_value_policy policy, handle parent) {
0 commit comments