[C++-sig] variable # args?

Hans Meine meine at kogs1.informatik.uni-hamburg.de
Thu Feb 2 12:57:38 CET 2006


On Thursday 02 February 2006 00:34, Neal Becker wrote:
> David Abrahams wrote:
> > Sounds like you're looking for:
> >
> >   http://www.boost.org/libs/python/doc/v2/raw_function.html
>
> Excellent.
>
> Now, can this be used with make_constructor?  e.g.:
>     .def("__init__", make_constructor(raw_function (F)))
>
> Doesn't seem to work:
> /usr/include/nb/boost/python/make_constructor.hpp:230:
> error: no matching function for call to
> 'get_signature(boost::python::api::object&)'

No, that does not work.  (Both functions wrap a C++ function into a callable 
object, so they can't work together.)

Have a look at my "Raw constructor (i.e. combination of make_constructor and 
raw_function)" thread (I say "my .. thread" because it was mostly me 
discussing with myself ;-p) in the archives, where I finally posted a 
solution.

-- 
Ciao, /  /
     /--/
    /  / ANS



More information about the Cplusplus-sig mailing list