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:
Howard Hinnant
2018-04-04 11:56:20 -04:00
committed by Nikolaos D. Bougalis
parent b7335fdff5
commit db3b4dd396
110 changed files with 400 additions and 28 deletions

View File

@@ -167,6 +167,8 @@ private:
class XRPEndpointPaymentStep : public XRPEndpointStep<XRPEndpointPaymentStep>
{
public:
explicit XRPEndpointPaymentStep() = default;
using XRPEndpointStep<XRPEndpointPaymentStep>::XRPEndpointStep;
XRPAmount