This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: G++ enums 'underlying type'
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Richard Earnshaw <rearnsha at gcc dot gnu dot org>
- Cc: Paul Schlie <schlie at comcast dot net>, gcc at gcc dot gnu dot org
- Date: 04 Jan 2005 16:03:20 +0100
- Subject: Re: G++ enums 'underlying type'
- Organization: Integrable Solutions
- References: <BDF33EB6.8609%schlie@comcast.net><m3u0q59dos.fsf@uniton.integrable-solutions.net><1104847395.32077.8.camel@pc960.cambridge.arm.com>
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 :-)