Re: [Boost-users] safe assign of int to enum
27 Mar
2006
27 Mar
'06
9:05 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Tomas Puverle Sent: Monday, March 27, 2006 3:07 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] safe assign of int to enum
I wrote a library for "smart enums" that allow you to:
1) Keep a forward and reverse mappings between enums and strings (in fact, you can use multiple strings for a single enum value ;) This is done in such a way that you can't fail to update the string table if you add/change an enum and vice versa.
[Nat] I have long wished the compiler would support mapping enums to/from string. If you have a maintainable way to do that, I'm very interested.
6803
Age (days ago)
6803
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nat Goodspeed