From 8edfa0c10ff1bdb13544da6c21d2ca864b239b06 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sat, 30 Apr 2016 23:01:06 +0200 Subject: [PATCH] further simplifications to shared_ptr caster --- include/pybind11/cast.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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: