|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-01-11 22:19:45
"Paul Mensonides" <pmenso57_at_[hidden]> writes:
>> > Well, yes. If you do that, however, it removes one of the primary
> reasons
>> > to use enumerations, which is for the syntactic convenience. The only
>> > reason left to use enums is to avoid the static storage of the
>> > values.
>>
>> And to improve compilation and linking speed.
I haven't done the tests of course, but I'd expect it to be faster
anyway. Allocating space in the link map for the static constant and
resolving it across translation units has to cost something.
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk