diff --git a/src/units.hh b/src/units.hh index 568d8b12..8f749b9f 100644 --- a/src/units.hh +++ b/src/units.hh @@ -84,6 +84,7 @@ private: struct LineCount : public StronglyTypedNumber { + LineCount() : LineCount(0) {} constexpr LineCount(int value) : StronglyTypedNumber(value) {} }; @@ -94,6 +95,7 @@ inline constexpr LineCount operator"" _line(unsigned long long int value) struct ByteCount : public StronglyTypedNumber { + ByteCount() : ByteCount(0) {} constexpr ByteCount(int value) : StronglyTypedNumber(value) {} }; @@ -104,6 +106,7 @@ inline constexpr ByteCount operator"" _byte(unsigned long long int value) struct CharCount : public StronglyTypedNumber { + CharCount() : CharCount(0) {} constexpr CharCount(int value) : StronglyTypedNumber(value) {} };