diff --git a/include/boost/python/converter/from_python_data.hpp b/include/boost/python/converter/from_python_data.hpp index dd0a0282..1ce8bd7a 100644 --- a/include/boost/python/converter/from_python_data.hpp +++ b/include/boost/python/converter/from_python_data.hpp @@ -15,7 +15,6 @@ # include # include # include -# include # include # include # include @@ -177,6 +176,8 @@ struct rvalue_data : rvalue_base_data rvalue_data(rvalue_stage1_data const&); rvalue_data(void*); ~rvalue_data(); + private: + typedef typename add_reference::type>::type ref_type; }; // @@ -197,8 +198,6 @@ inline rvalue_data::rvalue_data(void* convertible) template inline rvalue_data::~rvalue_data() { - typedef typename add_reference::type>::type ref_type; - if (this->stage1.convertible == this->storage.bytes) python::detail::destroy_reference(this->storage.bytes); }