F.60: Remove C-style cast (T&) from example of invalid C++ (#1711)

This commit is contained in:
Niels Dekker 2020-11-16 17:07:56 +01:00 committed by GitHub
parent a6eb40c5a2
commit e2c0f23ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3472,7 +3472,7 @@ Sometimes having `nullptr` as an alternative to indicated "no object" is useful,
##### Note
It is possible, but not valid C++ to construct a reference that is essentially a `nullptr` (e.g., `T* p = nullptr; T& r = (T&)*p;`).
It is possible, but not valid C++ to construct a reference that is essentially a `nullptr` (e.g., `T* p = nullptr; T& r = *p;`).
That error is very uncommon.
##### Note