Boost logo

Boost Users :

From: Tomas Puverle (Tomas.Puverle_at_[hidden])
Date: 2006-03-27 20:52:49


> 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 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