2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

Fix example

[SVN r16256]
This commit is contained in:
Dave Abrahams
2002-11-15 12:25:29 +00:00
parent f2797ec262
commit bbc052bedc

View File

@@ -216,11 +216,11 @@ BOOST_PYTHON_MODULE(extract_ext)
object x_obj = x_class(3);
// Get a reference to the C++ object out of the Python object
X const& x = extract<X&>(x_obj);
X& x = extract<X&>(x_obj);
assert(x.value() == 3);
}
</pre>
<p>Revised 30 September, 2002</p>
<p>Revised 15 November, 2002</p>
<p><i>&copy; Copyright <a href=
"../../../../people/dave_abrahams.htm">Dave Abrahams</a> 2002. All Rights