diff --git a/doc/tutorial/doc/tutorial.qbk b/doc/tutorial/doc/tutorial.qbk index 23b27649..b673e425 100644 --- a/doc/tutorial/doc/tutorial.qbk +++ b/doc/tutorial/doc/tutorial.qbk @@ -661,13 +661,13 @@ similar set of intuitive interfaces can also be used to wrap C++ functions that correspond to these Python ['special functions]. Example: class Rational - { operator double() const; }; + { public: operator double() const; }; Rational pow(Rational, Rational); Rational abs(Rational); ostream& operator<<(ostream&,Rational); - class_() + class_("Rational") .def(float_(self)) // __float__ .def(pow(self, other)) // __pow__ .def(abs(self)) // __abs__