mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
Prevent accidental aggregates
* The compiler can provide many non-explicit constructors for aggregate types. This is sometimes desired, but it can happen accidentally, resulting in run-time errors. * This commit assures that no types are aggregates unless existing code is using aggregate initialization.
This commit is contained in:
committed by
Nikolaos D. Bougalis
parent
b7335fdff5
commit
db3b4dd396
@@ -91,7 +91,7 @@ struct AmendmentState
|
||||
/** The name of this amendment, possibly empty. */
|
||||
std::string name;
|
||||
|
||||
AmendmentState () = default;
|
||||
explicit AmendmentState () = default;
|
||||
};
|
||||
|
||||
/** The status of all amendments requested in a given window. */
|
||||
|
||||
Reference in New Issue
Block a user