Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-03-27 18:48:22


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Tim
> Robertson
> Sent: Monday, March 27, 2006 3:46 PM
> To: boost-users_at_[hidden]
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net