
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Tim Robertson Sent: Monday, March 27, 2006 3:46 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] safe assign of int to enum
I've wasted many hours doing most of these things, so I would be interested in seeing your solution.
At the very least, could you post some information on the approach you used to keep the forward/reverse mappings updated automatically? Also, were you able to do all of this without balooning the size of your "enums"? I've never found a way to do that....
You make a good point. We should want sizeof(other_enum)==sizeof(c_enum). Not everyone needs to map between strings and enumerations