mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
Stick Joel's revisions on a branch
[SVN r15358]
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user