[C++-sig] Re: make_constructor & keyword arguments?
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Mon Aug 9 17:28:31 CEST 2004
--- David Abrahams <dave at boost-consulting.com> wrote:
> I think you need a "self" argument, though I might be wrong.
>
> .def("__init__",
> boost::python::make_constructor(
> from_iselection_unsigned
> , (arg_("self"), arg_("size"), arg_("iselection"))
> ))
Using this code exactly (copy-and-paste) I am getting the following error
messages:
Linux RH8, gcc 3.4.0:
http://cci.lbl.gov/~rwgk/tmp/make_constructor_keyword_problem_gcc340
Tru64 5, cxx 6.5 (EDG 245):
http://cci.lbl.gov/~rwgk/tmp/make_constructor_keyword_problem_cxx65
I also tried without the arg_("self") but the errors are pretty much the same.
BTW: typedef boost::python::arg arg_; // gcc 2.96 workaround
Ralf
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
http://messenger.yahoo.com
More information about the Cplusplus-sig
mailing list