[C++-sig] Need help on enum--a concrete example

Joel de Guzman djowel at gmx.co.uk
Mon Sep 9 04:26:34 CEST 2002


----- Original Message ----- 
From: "David Abrahams" <dave at boost-consulting.com>


> From: "Min Xu" <minxu at sci.ccny.cuny.edu>
> 
> <<
> Hi,
> 
> Thanks for the quick reply. I compiled the code with your changes. The
> compilation failed.
> >>
> 
> Sorry, Min. Please make the following change:
> 
>    class_<A, A_wrap>("A")
>       // .def(init<double,int>()) // ******
>       .def_init(args<double, int>())
>       .def("get", &A::get)
>       .def("get1", &A::get1);
> 
> Joel, I think this bug is one of yours; uncomment the indicated line to
> reproduce it.

Yep. This is a bug indeed. 
Fixed and committed to CVS. Added a test case in test/defaults.cpp.
Thanks for spotting this.

Regards,
--Joel





More information about the Cplusplus-sig mailing list