[C++-sig] V2 enum convertors
David Abrahams
david.abrahams at rcn.com
Mon Apr 1 23:47:29 CEST 2002
OK, are you ready to implement it?
I'm not, quite yet.
I'll help you in any way I can...
-Dave
----- Original Message -----
From: "Peter Bienstman" <pbienst at MIT.EDU>
To: <c++-sig at python.org>
Sent: Monday, April 01, 2002 3:59 PM
Subject: [C++-sig] V2 enum convertors
>
> >So, let's discuss the interface. Seems to me something like class_<>
> >would be good:
>
> >enum MyEnum { one = 1, two, three };
>
> >module("m")
> > .add(enum_<MyEnum>("MyEnum")
> > .value("one", one)
> > .value("two", two)
> > .value("three", three)
> > )
>
>
> No objections here. This is probably as concise and as clear as you
can
> get.
>
> Peter
>
>
>
>
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
More information about the Cplusplus-sig
mailing list