In C++98
12.6.2/4 : After the call to a constructor for class X has completed, if a member of X is neither specified in the constructor's mem-initializers, nor default-initialized, nor initialized during execution of the body of the constructor, the member has indeterminate value.
What does nor initialized during execution of the body of the constructor mean? Can a member be initialized inside the body of the constructor?
nor initialized during execution of the body of the constructor is not correct IMHO.
The wordings have been changed in C++03 from nor initialized (in C++98) to nor given a value
After the call to a constructor for class X has completed, if a member of X is neither specified in the constructor’s mem-initializers, nor default-initialized, nor value-initialized, nor given a value during execution of the body of the constructor, the member has indeterminate value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With