mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
bad return type
This commit is contained in:
@@ -4532,7 +4532,7 @@ Leaving behind an invalid object is asking for trouble.
|
||||
// ...
|
||||
}
|
||||
|
||||
void is_valid() { return valid; }
|
||||
bool is_valid() { return valid; }
|
||||
void read(); // read from f
|
||||
// ...
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user