2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

class_<> is now derived from object

[SVN r14594]
This commit is contained in:
Dave Abrahams
2002-07-25 04:41:21 +00:00
parent f458dbdbcb
commit 63eed8994a
13 changed files with 115 additions and 72 deletions

View File

@@ -120,9 +120,7 @@ BOOST_PYTHON_MODULE_INIT(extract_ext)
;
// Instantiate an X object through the Python interface
type_handle xc1 = x_class.object();
object X_(xc1);
object x_obj = X_(3);
object x_obj = x_class(3);
// Get the C++ object out of the Python object
X const& x = extract<X&>(x_obj);