MESSAGE
DATE | 2011-06-11 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] (fwd) Re: Using sizeof in the preprocessor
|
-- forwarded message -- Path: reader1.panix.com!panix!news.linkpendium.com!news.linkpendium.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.weisnix.org!citadel.nobulus.com!newsfeed1.tdcnet.fi!fi.sn.net!newsfeed2.tdcnet.fi!news.song.fi!not-for-mail Message-ID: <4dd8a6da$0$2871$7b1e8fa0-at-news.nbl.fi> From: Juha Nieminen Subject: Re: Using sizeof in the preprocessor Newsgroups: comp.lang.c++ References: <4dd7bfa5$0$7624$9b4e6d93-at-newsspool1.arcor-online.net> <4dd809a7$0$2844$7b1e8fa0-at-news.nbl.fi> <87zkmfde2c.fsf-at-dpt-info.u-strasbg.fr> User-Agent: tin/1.9.3-20080506 ("Dalintober") (UNIX) (Linux/2.6.38.6-kapsi-grbfs+ (x86_64)) Date: 22 May 2011 06:02:02 GMT Lines: 15 Organization: NBL Networks Oy NNTP-Posting-Host: 217.30.184.161 X-Trace: 1306044122 news.nbl.fi 2871 217.30.184.161:37621 X-Complaints-To: abuse-at-nblnetworks.fi Xref: panix comp.lang.c++:1085156
Alain Ketterlin wrote: > Funny idea. Here (gcc/g++ 4.4.4), gcc and g++ both with -E give > different results on the following input: > > #if true > #error "then" > #else > #error "else" > #endif
#if true std::cout << "You rock!\n" #else #error "Your language is too old. Please upgrade." #endif -- end of forwarded message --
|
|