diff --git a/include/boost/python/class.hpp b/include/boost/python/class.hpp index 1abf41cb..1a5890c6 100644 --- a/include/boost/python/class.hpp +++ b/include/boost/python/class.hpp @@ -198,9 +198,9 @@ class class_ : public objects::class_base // Pickle support template - self& def_pickle(PickleSuiteType) + self& def_pickle(PickleSuiteType const& x) { - error_messages::must_be_derived_from_pickle_suite(PickleSuiteType()); + error_messages::must_be_derived_from_pickle_suite(x); detail::pickle_suite_finalize::register_( *this, &PickleSuiteType::getinitargs,