diff --git a/include/boost/python/enum.hpp b/include/boost/python/enum.hpp index f7d06075..072a0626 100644 --- a/include/boost/python/enum.hpp +++ b/include/boost/python/enum.hpp @@ -15,6 +15,8 @@ namespace boost { namespace python { template struct enum_ : public objects::enum_base { + typedef objects::enum_base base; + enum_(char const* name); inline enum_& value(char const* name, T); @@ -26,7 +28,7 @@ struct enum_ : public objects::enum_base template inline enum_::enum_(char const* name) - : enum_base( + : base( name , &enum_::to_python , &enum_::convertible @@ -39,7 +41,7 @@ inline enum_::enum_(char const* name) template PyObject* enum_::to_python(void const* x) { - return enum_base::to_python( + return base::to_python( converter::registered::converters.class_object , static_cast(*(T const*)x)); }