2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00
[SVN r10574]
This commit is contained in:
Dave Abrahams
2001-07-09 23:45:09 +00:00
parent 8ad7d06ec6
commit 819db1524f

View File

@@ -91,8 +91,8 @@ initialization. These bind the corresponding enum values to the appropriate
names so they can be used from Python:
<blockquote><pre>
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");
...
</pre></blockquote>