Re: Why 0 is not int* ? Error with sample of Bjarne Book
- To: mathgroup@smc.vnet.net
- Subject: [mg12372] Re: Why 0 is not int* ? Error with sample of Bjarne Book
- From: Khimenko Victor <khim@sch57.msk.ru>
- Date: Sun, 10 May 1998 02:04:55 -0400
On 7 May 1998, Alexandre Oliva wrote: > Khimenko Victor <khim@sch57.msk.ru> writes: > > > A constant expression ($C.5) that evalutes to 0 can be implicitly > > converted to any pointer or pointer to member type ($5.1.1). > > Note that, in C++, `!1' is not `0', it's `false'. > Yes. !1 is false but still false could be evaluted to 0. I am not really sure who is right from standard viewpoint but simple sample from "The C++ Programming Language" (top of p835) could not be compiled with egcs :-(( This is not good...