mirror of
https://github.com/boostorg/python.git
synced 2026-01-30 20:12:37 +00:00
Patches by Nikolay Mladenov (nickm at sitius com): new pythonic signatures; docstring support for enums; fix unrelated Visual C++ 6 problem
[SVN r39191]
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include <boost/python/tuple.hpp>
|
||||
#include <boost/python/extract.hpp>
|
||||
|
||||
namespace { // Avoid cluttering the global namespace.
|
||||
namespace boost_python_test {
|
||||
|
||||
// A friendly class.
|
||||
class world
|
||||
@@ -88,6 +88,7 @@ namespace { // Avoid cluttering the global namespace.
|
||||
|
||||
BOOST_PYTHON_MODULE(pickle2_ext)
|
||||
{
|
||||
using namespace boost_python_test;
|
||||
boost::python::class_<world>(
|
||||
"world", boost::python::init<const std::string&>())
|
||||
.def("greet", &world::greet)
|
||||
|
||||
Reference in New Issue
Block a user