|
Boost : |
From: Greg Colvin (gcolvin_at_[hidden])
Date: 2000-11-26 00:35:45
> >The problem is that the C standard allows for NULL to be defined
> >as (void*)0 in which case p=NULL will not compile as C++. It has
> >nothing to do with readability.
>
> Well if all the compilers you use or are likely to use define NULL so
> that it actually works with C++ I see no problem with using it. Of
> course, you can't assume something like that for boost...
Strictly speaking it's the library that defines NULL, and strictly
speaking if you are using a conforming C++ library the definition
will be correct, and not (void*)0.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk