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

Alexandre Oliva oliva@dcc.unicamp.br
Thu May 7 16:22:00 GMT 1998


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




More information about the Gcc-bugs mailing list