diff --git a/include/filestorm/data_sizes.h b/include/filestorm/data_sizes.h index 937287e..806fe62 100644 --- a/include/filestorm/data_sizes.h +++ b/include/filestorm/data_sizes.h @@ -164,7 +164,7 @@ template struct fmt::formatter> { } // This is where you define how to format DataSize - template auto format(const DataSize &size, FormatContext &ctx) -> decltype(ctx.out()) { + template auto format(const DataSize &size, FormatContext &ctx) const -> decltype(ctx.out()) { std::string unit; switch (T) { case DataUnit::B: