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

Roman Yakovenko roman.yakovenko at gmail.com
Wed Jun 21 07:35:44 CEST 2006


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.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list