G++ enums 'underlying type'
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Jan 4 15:29:00 GMT 2005
Richard Earnshaw <rearnsha@gcc.gnu.org> writes:
| On Wed, 2004-12-29 at 18:12, Gabriel Dos Reis wrote:
|
| > In C, enumerator are ints -- even though the associated enumeration
| > type is considered a distinct types. Only C++ allows for the smallest
| > integer type as the underlying type; and C++ enumerators are not ints.
|
| In C, enumeration *constants* are ints.
They are called *enumerators*, which is what I was saying :-)
More information about the Gcc
mailing list