mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
qualified access
This commit is contained in:
@@ -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();
|
||||
// ...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user