[C++-sig] Member function bp::optional? Or workaround?

Charles Solar charlessolar at gmail.com
Tue Jan 12 20:46:10 CET 2010


Well I want to define the overloads myself anyway, I just do not know how to
properly setup the small wrapper that will work.  In the doc it tells you
how to make flat function wrappers, but nothing on member function
wrappers.  I am unsure how I am supposed to handle the this pointer, for
example.
So idealy what I would like to know is what the macro does so I can manually
write out the wrappers myself.

And I have tried using Py++, it does not handle the default argument, it
just puts the call in there and python still requires the param to be there.


On Tue, Jan 12, 2010 at 1:21 PM, Hans Meine <hans_meine at gmx.net> wrote:

> On Dienstag 12 Januar 2010, Charles Solar wrote:
> > I have a few default parameters in a couple of my member functions, and
> > these functions do not conform to the format required
> > forBOOST_PYTHON_MEMBER_FUNCTION_OVERLOAD..
>
> I never use BOOST_PYTHON_MEMBER_FUNCTION_OVERLOAD anyway.  You may
> freely .def'ine multiple overloads yourself.  (Or maybe you want to try
> pyplusplus, if you have many such functions.)
>
> --
> Ciao, /  /                                                    .o.
>     /--/                                                     ..o
>    /  / ANS                                                  ooo
>
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20100112/6376fe46/attachment.htm>


More information about the Cplusplus-sig mailing list