NULL vs 0 vs 0L bikeshed time

Craig Rodrigues rodrigc at crodrigues.org
Mon Mar 1 07:03:09 PST 2004


On Mon, Mar 01, 2004 at 08:15:57AM -0500, Thomas David Rivers wrote:
>  But - I believe (and I need to check on this) that the C++
>  standard requires the NULL constant to be a pointer type (so
>  various conversions work.)

This is from the C++ standard:

18.1 Types

4  The macro NULL is an implementation defined C++ null pointer constant in this
   International Standard (4.10). 180)

   180)  Possible definitions include 0 and 0L, but not (void*)0.


-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc at crodrigues.org


More information about the freebsd-current mailing list