mirror of
https://github.com/boostorg/python.git
synced 2026-01-21 05:02:17 +00:00
Moved to python_v2_API_restructure branch
[SVN r15354]
This commit is contained in:
@@ -34,12 +34,12 @@ BOOST_PYTHON_MODULE_INIT(nested_ext)
|
||||
|
||||
// Establish X as the current scope.
|
||||
scope x_class(
|
||||
class_<X>("X", args<int>())
|
||||
class_<X>("X", init<int>())
|
||||
.def(str(self))
|
||||
);
|
||||
|
||||
// Y will now be defined in the current scope
|
||||
class_<Y>("Y", args<int>())
|
||||
class_<Y>("Y", init<int>())
|
||||
.def(str(self))
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user