diff --git a/doc/v2/args.html b/doc/v2/args.html index 561ba346..e04720b7 100644 --- a/doc/v2/args.html +++ b/doc/v2/args.html @@ -101,7 +101,7 @@ namespace boost { namespace python struct arg { template <class T> - arg &perator = (T const &value); + arg &operator = (T const &value); explicit arg (char const *name){elements[0].name = name;} }; diff --git a/doc/v2/return_internal_reference.html b/doc/v2/return_internal_reference.html index cbdde307..87c33f85 100644 --- a/doc/v2/return_internal_reference.html +++ b/doc/v2/return_internal_reference.html @@ -167,12 +167,13 @@ PyObject* postcall(PyObject* args, PyObject* result); class Bar { + public: Bar(int x) : x(x) {} int get_x() const { return x; } void set_x(int x) { this->x = x; } private: int x; -} +}; class Foo { @@ -189,7 +190,7 @@ class Foo using namespace boost::python; BOOST_PYTHON_MODULE(internal_refs) { - class_<Bar>("Bar") + class_<Bar>("Bar", init<int>()) .def("get_x", &Bar::get_x) .def("set_x", &Bar::set_x) ;