----- Original Message ----- From: "David Abrahams" <[EMAIL PROTECTED]>
> > I guess it would depend heavily on the compiler used. For instance, a > > compiler might not actually create the storage at all unless the address of > > the static const is actually needed--which would cause the effect to be > > minimal. On the other hand, unless you mapped all the enumerators of a > > particular value to the same type, you'd have issues with name lookup. > > My proposal with integral_c would do exactly that. Yes, and I like it. ;) The only thing I don't like about it is the potential interplay with the rest of the type system. The mapping to a single type per value is good, but it doesn't completely solve the problem. I just think it is better to steer clear of the situation altogether. I personally only use static const for interface values though and use enumerations for internal values (with casting if necessary). Paul Mensonides _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost