Merge pull request #7675 from ethereum/memberInitializeInCodingStyle

Member initialize PODs in CODING_STYLE.md.
This commit is contained in:
chriseth 2019-11-11 13:42:58 +01:00 committed by GitHub
commit 7c7cca5f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);