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:
@@ -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>© Copyright <a href=
|
||||
"../../../../people/dave_abrahams.htm">Dave Abrahams</a> 2002. All Rights
|
||||
|
||||
Reference in New Issue
Block a user