3 ms·
Dereferencing a null pointer to convert it to a reference causes undefined behavior, there's nothing safe about it! "Note: in particular, a null reference cann
by tomjakubowski 8y ago
Dereferencing a null pointer to convert it to a reference causes undefined behavior, there's nothing safe about it!
"Note: in particular, a null reference cannot exist in a well-defined program, because the only way to create such a reference would be to bind it to the “object” obtained by dereferencing a null pointer, which causes undefined behavior."