From 819db1524fe330793593ea4efea395f20068381a Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 9 Jul 2001 23:45:09 +0000 Subject: [PATCH] Integrate fix from Peter.Bienstman@rug.ac.be [SVN r10574] --- doc/enums.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");
 ...