mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
qualified access
This commit is contained in:
parent
04345df6d0
commit
6a8728a054
|
@ -4541,7 +4541,7 @@ Leaving behind an invalid object is asking for trouble.
|
|||
X3 file {"Heraclides"};
|
||||
file.read(); // crash or bad read!
|
||||
// ...
|
||||
if (is_valid()) {
|
||||
if (file.is_valid()) {
|
||||
file.read();
|
||||
// ...
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user