We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09aef9b + 2801dc2 commit 2e5b167Copy full SHA for 2e5b167
CppCoreGuidelines.md
@@ -3453,7 +3453,7 @@ It is often a good idea to express the invariant as an `Ensure` on the construct
3453
};
3454
3455
Rec r1 {"Foo",7};
3456
- Rec r2 {"Bar};
+ Rec r2 {"Bar"};
3457
3458
The `Rec2` constructor is redundant.
3459
Also, the default for `int` would be better done as a [member initializer](#Rc-in-class initializer).
@@ -3904,7 +3904,7 @@ The common action gets tedious to write and may accidentally not be common.
3904
{ if (!valid(i,m,y)) throw Bad_date{}; }
3905
3906
Date2(int ii, Month mm)
3907
- :Date2{ii,mm,current_year{}} {}
+ :Date2{ii,mm,current_year()} {}
3908
// ...
3909
3910
0 commit comments