[C++-sig] Docstring for overloaded method

David Abrahams dave at boost-consulting.com
Sat Feb 1 19:04:23 CET 2003


"Achim Domma" <achim.domma at syynx.de> writes:

> Hi,
>
> I have something like
>
> class_<MyClass>("MyClass")
>     .def("myFkt", (overloaded1)&MyClass::myFkt)
>     .def("myFkt", (overloaded2)&MyClass::myFkt)
>     ....;
>
> where overloaded1 and overloaded2 are the different signatures for the
> overloads. Now I want to specify a docstring for myFkt. Where should I do
> that? On the first version, on the last or on both?

Take your pick ;-)

-- 
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution





More information about the Cplusplus-sig mailing list