Member initialize PODs in CODING_STYLE.md.

This commit is contained in:
Daniel Kirchner 2019-11-11 13:33:38 +01:00
parent a5f0422dcc
commit 7bb9a21103

View File

@ -135,12 +135,12 @@ enum class Accuracy
}; };
struct MeanSigma struct MeanSigma
{ {
float mean; float mean = 0.0f;
float standardDeviation; float standardDeviation = 1.0f;
}; };
double const d = 0; double const d = 0;
int i; int i = 0;
int j; int j = 0;
char* s; char* s;
MeanAndSigma ms meanAndSigma(std::vector<float> const& _v, Accuracy _a); MeanAndSigma ms meanAndSigma(std::vector<float> const& _v, Accuracy _a);
Derived* x = dynamic_cast<Derived*>(base); Derived* x = dynamic_cast<Derived*>(base);