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

pull/1714/head
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
1 changed files with 1 additions and 1 deletions

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