Boost logo

Boost Users :

From: Tim Robertson (timr_at_[hidden])
Date: 2006-03-28 01:10:53


FYI: Some googling tells me that there is current work underway (since
2002?) on a Boost enum library. Go here for a tarball of the latest
candidate:

http://boost-consulting.com/vault/index.php?
action=downloadfile&filename=enum_rev4.6.zip&directory=&PHPSESSID=aae83f
bb6983e99c3a7b00c813f10502&PHPSESSID=aae83fbb6983e99c3a7b00c813f10502

-tim

On Mar 27, 2006, at 5:52 PM, Tomas Puverle wrote:

>> You make a good point. We should want
>> sizeof(other_enum)==sizeof(c_enum). Not everyone needs to map between
>> strings and enumerations
>
> While I can't guarantee that, that is the case most of the time. Put
> it this
> way - it will be true if your compiler will take a structure with one
> member
> and no virtual functions and make sizeof(structure)==sizeof(member).
> I think I will add a feature to allow the programmer to specify the
> underlying
> enum size, too (i.e. int, long, etc.)
> As I said, the implementation is both space and time efficient.
>
> Tom
>
>
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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