delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/21/17:23:40

From: "David May" <dmay AT tvi DOT cc DOT nm DOT us>
Organization: Albuquerque T-VI
To: abostick AT netcom DOT com (Alan Bostick)
Date: Tue, 21 Jan 1997 15:05:27 -0700
Subject: Re: New to djgpp -- curious compilation problem
CC: djgpp AT delorie DOT com
Message-ID: <A7FEB0155E@tvi_mail.tvi.cc.nm.us>

> I'm new to djgpp and fairly new to C++ and have run into what seems to 
> me to be an odd compilation problem.
> 
> I'm trying to learn the language from Stanley Lippman's C++ PRIMER, 2nd
> edition, and have downloaded Lippman's examples from his FTP site.  I
> have discovered, when compiling his examples, that djgpp chokes on the
> following construction:
> 	enum Boolean {false = 0, true};

I believe the new standard for C++ results in false, true becoming 
part of the language (i.e., key words) and you therefore can use them 
in any context in which you would use a #define.  Please, someone 
correct me if this is not correct.

Regards.
David May, ID Card Administrator
Albuquerque TVI

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019