Skip to content

Commit 005e546

Browse files
committed
bad return type
1 parent 2a9d0a4 commit 005e546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4532,7 +4532,7 @@ Leaving behind an invalid object is asking for trouble.
45324532
// ...
45334533
}
45344534

4535-
void is_valid() { return valid; }
4535+
bool is_valid() { return valid; }
45364536
void read(); // read from f
45374537
// ...
45384538
};

0 commit comments

Comments
 (0)