2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-02 21:12:15 +00:00

Restore main trunk to health

[SVN r15359]
This commit is contained in:
Dave Abrahams
2002-09-16 04:03:39 +00:00
parent b37198106d
commit 06f6f2ff21
20 changed files with 56 additions and 49 deletions

View File

@@ -22,14 +22,14 @@ double get_fair_value(X const& x) { return x.value(); }
BOOST_PYTHON_MODULE_INIT(data_members_ext)
{
class_<X>("X", init<int>())
class_<X>("X", args<int>())
.def("value", &X::value)
.def("set", &X::set)
.def_readonly("x", &X::x)
.add_property("fair_value", &get_fair_value)
;
class_<Y>("Y", init<int>())
class_<Y>("Y", args<int>())
.def("value", &Y::value)
.def("set", &Y::set)
.def_readwrite("x", &Y::x)