[C++-sig] bp::arg() also requires types to be declared

Hans Meine hans_meine at gmx.net
Fri Jun 23 17:35:00 CEST 2006

On Wednesday 21 June 2006 18:01, Niall Douglas wrote:
> If, and only if, both Foo and Foo2 have constructors with no default
> args, you can delay the constructor declaration and declare it later
> via bp::init<>. Otherwise you are trapped and can't use bp::arg() at
> all.

That's not the whole truth.  AFAICS, you can use no_init to delay constructor 
declaration in any case, create all class_<...> instantiations and then later 
add the methods.  Maybe that helps?

Ciao, /  /
    /  / ANS

More information about the Cplusplus-sig mailing list