[C++-sig] Auto Overload with doc string

Roman Yakovenko roman.yakovenko at gmail.com
Fri Jan 5 19:56:41 CET 2007


On 1/5/07, Shashank Bapat <shashankbapat at hotmail.com> wrote:
> I tried
> .def("foo", foo, foo_overloads(), "docstring");
>
> and I got compiler error. Something like:
>
> \boost_1_33_1\boost\python\detail\caller.hpp(68) : error C2039:
> 'result_converter' ....
>
> Is there a way I can have doc strings with auto overloading?

No

> I have boost 1_33_1. Will later release fix this issue?

I don't think so. In my opinion have single doc for few functions will
confuse the
user, rather than help.

Take a look on this page. It describes how to achieve same effect, without using
auto overloading feature:
http://language-binding.net/pyplusplus/documentation/functions/overloading.html
-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list