Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 1996 15:43:37 -0500 (EST)
From:      Marc Ramirez <mrami@mramirez.sy.yale.edu>
To:        dwhite@resnet.uoregon.edu
Cc:        questions@FreeBSD.ORG
Subject:   Re: How do you declare an enum ?
Message-ID:  <Pine.BSF.3.91.960403153903.17131A-100000@mramirez.sy.yale.edu>
In-Reply-To: <Pine.BSF.3.91.960403092059.1411A-100000@riley-net170-164.uoregon.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Apr 1996, Doug White wrote:

> hello!
> 
> What is the gcc way of declaring an enum?
> 
> I have a line like this in a .h file:
> 
> enum boolean {false, true};

Your syntax is fine. 'false' and 'true' are already defined in c++, along 
with the 'bool' type. :) (Don't ask me where it's declared.)

Marc.

--
Confession is good for the soul only in the sense that a tweed coat is
good for dandruff.
	-- Peter de Vries




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960403153903.17131A-100000>