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

Moved to python_v2_API_restructure branch

[SVN r15354]
This commit is contained in:
Joel de Guzman
2002-09-16 03:01:35 +00:00
parent f355be8ac5
commit 6b96eca21b
22 changed files with 60 additions and 160 deletions

View File

@@ -59,7 +59,7 @@ std::ostream& operator<<(std::ostream& s, X const& x)
BOOST_PYTHON_MODULE_INIT(operators_ext)
{
class_<X>("X", args<int>())
class_<X>("X", init<int>())
.def("value", &X::value)
.def(self - self)
.def(self - int())
@@ -77,7 +77,7 @@ BOOST_PYTHON_MODULE_INIT(operators_ext)
.def(pow(int(),self))
;
class_<test_class<1> >("Z", args<int>())
class_<test_class<1> >("Z", init<int>())
.def(int_(self))
.def(float_(self))
.def(complex_(self))