mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 17:32:55 +00:00
Moved to python_v2_API_restructure branch
[SVN r15354]
This commit is contained in:
@@ -98,7 +98,7 @@ namespace { // Avoid cluttering the global namespace.
|
||||
BOOST_PYTHON_MODULE_INIT(pickle3_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)
|
||||
|
||||
Reference in New Issue
Block a user