"Paul Mensonides" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost