Skip to content

Commit

Permalink
fix fmt formatter for datasizes
Browse files Browse the repository at this point in the history
  • Loading branch information
janjurca committed Jul 26, 2024
1 parent 5c64fd0 commit 024a3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/filestorm/data_sizes.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ template <DataUnit T> struct fmt::formatter<DataSize<T>> {
}

// This is where you define how to format DataSize
template <typename FormatContext> auto format(const DataSize<T> &size, FormatContext &ctx) -> decltype(ctx.out()) {
template <typename FormatContext> auto format(const DataSize<T> &size, FormatContext &ctx) const -> decltype(ctx.out()) {
std::string unit;
switch (T) {
case DataUnit::B:
Expand Down

0 comments on commit 024a3c3

Please sign in to comment.