23 May
2022
23 May
'22
7:28 p.m.
Richard wrote:
In article <076301d86d77$2c794330$856bc990$@gmail.com>, Peter Dimov via Boost
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.