diff --git a/doc/enums.html b/doc/enums.html index 32d61447..c58ca34d 100644 --- a/doc/enums.html +++ b/doc/enums.html @@ -91,8 +91,8 @@ initialization. These bind the corresponding enum values to the appropriate names so they can be used from Python:
-mymodule.add(boost::python::to_python(enum_value_1), "enum_value_1"); -mymodule.add(boost::python::to_python(enum_value_2), "enum_value_2"); +mymodule.add(boost::python::make_ref(enum_value_1), "enum_value_1"); +mymodule.add(boost::python::make_ref(enum_value_2), "enum_value_2"); ...