File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ <h4><a name="arg-synopsis"></a>Class <code>arg</code> synopsis</h4>
101101 struct arg
102102 {
103103 template <class T>
104- arg &perator = (T const &value);
104+ arg &operator = (T const &value);
105105 explicit arg (char const *name){elements[0].name = name;}
106106 };
107107
Original file line number Diff line number Diff line change @@ -167,12 +167,13 @@ <h3>C++ module definition</h3>
167167
168168class Bar
169169{
170+ public:
170171 Bar(int x) : x(x) {}
171172 int get_x() const { return x; }
172173 void set_x(int x) { this->x = x; }
173174 private:
174175 int x;
175- }
176+ };
176177
177178class Foo
178179{
@@ -189,7 +190,7 @@ <h3>C++ module definition</h3>
189190using namespace boost::python;
190191BOOST_PYTHON_MODULE(internal_refs)
191192{
192- class_<Bar>("Bar")
193+ class_<Bar>("Bar", init<int>() )
193194 .def("get_x", &Bar::get_x)
194195 .def("set_x", &Bar::set_x)
195196 ;
You can’t perform that action at this time.
0 commit comments