Re: NULL vs 0 vs 0L bikeshed time

From: Craig Rodrigues <rodrigc_at_crodrigues.org>
Date: Mon, 1 Mar 2004 10:03:03 -0500
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
Received on Mon Mar 01 2004 - 06:03:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:45 UTC