c++-sig@python.org
[Top] [All Lists]

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

Subject: Re: [C++-sig] bp::arg() also requires types to be declared
From: Hans Meine
Date: Fri, 23 Jun 2006 17:35:00 +0200
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
_______________________________________________
C++-sig mailing list
C++-sig@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/c++-sig

<Prev in Thread] Current Thread [Next in Thread>