[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Compiler version
From:       Thiago Macieira <thiago () kde ! org>
Date:       2012-06-28 16:50:42
Message-ID: 2267673.7jph0h8UF2 () tjmaciei-mobl2
[Download RAW message or body]


On quinta-feira, 28 de junho de 2012 13.37.14, Tomaz Canabrava wrote:
> Thiago, on C++ 0 and (void*) 0 are the same thing? I know that on C
> they aren't, and I didn't found the information easily on the web.

No, they are not.

In C++, 0 can be cast to any pointer, but so can 0L and false. However, 
(void*)0 is a null of type void* and that cannot be cast to any pointer type 
except for void *.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic