[C++-sig] bp::arg() also requires types to be declared
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Wed Jun 21 17:20:26 CEST 2006
--- Roman Yakovenko <roman.yakovenko at gmail.com> wrote:
> On 6/21/06, David Abrahams <dave at boost-consulting.com> wrote:
> > "Niall Douglas" <s_sourceforge at nedprod.com> writes:
> > > It appears it's not only enums that must be defined before use with
> > > boost::python::arg() - also all types.
> > What do you mean by "used with?"
> > What do you mean by "defined?" Do you mean they need to be complete
> > types (i.e. not forward declared)?
> In order to use boost::python::arg with default value, the type of
> default value
> should be already registered.
You can get around this by using BOOST_PYTHON_[MEMBER_]FUNCTION_OVERLOADS, or
simply wrap the overloads one by one.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Cplusplus-sig