[C++-sig] BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS question
Joel de Guzman
djowel at gmx.co.uk
Thu Sep 11 13:51:16 CEST 2003
eric andersonT <eric.anderson at comcast.net> wrote:
> To put it even simpler: where to I specify
> "return_value_policy<manage_new_object>()" in this statement:
>
> class<C>( "C", "class C", init<> )
> .def( "bar", &C::bar, bar_overloads( args( "a" ),
> "returns object of class B" )
Hi,
The syntax for the overload dispatcher is:
X(keywords, docstring)[policies]
Have you tried it? Anyway, if you have further problems, it would
really be helpful if you can post a minimal working code so I can
try it out myself.
Cheers,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net
More information about the Cplusplus-sig
mailing list