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

Stick Joel's revisions on a branch

[SVN r15358]
This commit is contained in:
Dave Abrahams
2002-09-16 04:01:33 +00:00
parent 06ed9cb5b3
commit 229ea1b679
20 changed files with 49 additions and 56 deletions

View File

@@ -90,7 +90,7 @@ namespace { // Avoid cluttering the global namespace.
BOOST_PYTHON_MODULE_INIT(pickle2_ext)
{
boost::python::class_<world>(
"world", boost::python::args<const std::string&>())
"world", boost::python::init<const std::string&>())
.def("greet", &world::greet)
.def("get_secret_number", &world::get_secret_number)
.def("set_secret_number", &world::set_secret_number)