diff --git a/src/units.hh b/src/units.hh index d4988ccf..74840402 100644 --- a/src/units.hh +++ b/src/units.hh @@ -86,6 +86,16 @@ inline constexpr LineCount operator"" _line(unsigned long long int value) return LineCount(value); } +struct ByteCount : public StronglyTypedInteger +{ + constexpr ByteCount(int value) : StronglyTypedInteger(value) {} +}; + +inline constexpr ByteCount operator"" _byte(unsigned long long int value) +{ + return ByteCount(value); +} + struct CharCount : public StronglyTypedInteger { constexpr CharCount(int value) : StronglyTypedInteger(value) {}