mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
F.60: Remove C-style cast (T&) from example of invalid C++ (#1711)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user