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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user