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

Make slice work on vc6

Revamp/simplify class registration


[SVN r23823]
This commit is contained in:
Dave Abrahams
2004-07-20 03:16:49 +00:00
parent 2bdb728e87
commit 615adc5fe6
18 changed files with 391 additions and 498 deletions

View File

@@ -29,7 +29,7 @@ BOOST_PYTHON_MODULE(injected_ext)
class_<X>("X", init<int>())
.def("__init__", make_constructor(empty))
.def("__init__", make_constructor(sum))
.def("__init__", make_constructor(product))
.def("__init__", make_constructor(product), "this is product's docstring")
.def("value", &X::value)
;
}