[C++-sig] Need help on enum--a concrete example
David Abrahams
dave at boost-consulting.com
Sun Sep 8 16:20:26 CEST 2002
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.
-Dave
-----------------------------------------------------------
David Abrahams * Boost Consulting
dave at boost-consulting.com * http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list