mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
F.60: Remove C-style cast (T&) from example of invalid C++ (#1711)
This commit is contained in:
parent
a6eb40c5a2
commit
e2c0f23ce1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user