Re:GCC 13 Supports New C2x Features, Including Nullptr, Enha...
by rightbyte on Monday May 15, 2023 @05:13PM
(#35954564)
> I don't understand why it's more acceptable to allow magic `0` conversions than magic `(void*)0` conversions
In the end you don't have to chose between '0' and 'nullptr' anyways.
char *x = (decltype (nullptr)) 0;
I don't understand why it's more acceptable to allow magic `0` conversions than magic `(void*)0` conversions, given that the latter is far less likely to happen by accident -- but here we are.