diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 481c78a4..686bf68d 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -680,8 +680,6 @@ public: using type_caster_base::typeinfo; using type_caster_base::value; using type_caster_base::temp; - using type_caster_base::copy_constructor; - using type_caster_base::move_constructor; bool load(handle src, bool convert) { if (!src || !typeinfo) { @@ -718,11 +716,11 @@ public: explicit operator holder_type&() { return holder; } #endif - static handle cast(const holder_type &src, return_value_policy policy, handle parent) { + static handle cast(const holder_type &src, return_value_policy, handle) { return type_caster_generic::cast( - src.get(), return_value_policy::take_ownership, parent, + src.get(), return_value_policy::take_ownership, handle(), src.get() ? &typeid(*src.get()) : nullptr, &typeid(type), - ©_constructor, &move_constructor, &src); + nullptr, nullptr, &src); } protected: