Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2022-05-23 19:28:48


Richard wrote:
> In article <076301d86d77$2c794330$856bc990$@gmail.com>,
> Peter Dimov via Boost <boost_at_[hidden]> writes:
>
> > Compilers apparently are warning on the use of 0 as a null pointer
> > constant, suggesting we use nullptr instead. But compilers don't know
> > that we support C++03 where nullptr isn't a thing.
>
> I couldn't reproduce with clang or gcc. Do you have a repro on compiler
> explorer?

You need -Wzero-as-null-pointer-constant which isn't on by default and is
not included in either -Wall or -Wextra.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk