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 257aa9d + cc74732 commit 058e1bfCopy full SHA for 058e1bf
CppCoreGuidelines.md
@@ -3741,7 +3741,7 @@ Setting a `Vector1` to empty after detecting an error is trivial.
3741
int j;
3742
public:
3743
X() :i{666}, s{"qqq"} { } // j is uninitialized
3744
- X(int i) :i{ii} {} // s is "" and j is uninitialized
+ X(int ii) :i{ii} {} // s is "" and j is uninitialized
3745
// ...
3746
};
3747
@@ -3755,7 +3755,7 @@ How would a maintainer know whether `j` was deliberately uninitialized (probably
3755
int j {0};
3756
3757
X2() = default; // all members are initialized to their defaults
3758
- X2(int i) :i{ii} {} // s and j initialized to their defaults
+ X2(int ii) :i{ii} {} // s and j initialized to their defaults
3759
3760
3761
0 commit comments