This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Why 0 is not int* ? Error with sample of Bjarne Book


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'.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]