Skip to content

Commit

Permalink
Avoid ambiguity in format_to
Browse files Browse the repository at this point in the history
  • Loading branch information
martenole authored and ktf committed Feb 5, 2024
1 parent 6dc4506 commit dc25227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataFormats/Headers/include/Headers/DataHeaderHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct fmt::formatter<T, std::enable_if_t<o2::header::is_descriptor<T>::value, c
template <typename FormatContext>
auto format(const T& p, FormatContext& ctx)
{
return format_to(ctx.out(), "{}", p.template as<std::string>());
return fmt::format_to(ctx.out(), "{}", p.template as<std::string>());
}
};

Expand Down Expand Up @@ -79,7 +79,7 @@ struct fmt::formatter<o2::header::DataHeader> {
fmt::format(" firstTForbit : {}\n", h.firstTForbit) +
fmt::format(" tfCounter : {}\n", h.tfCounter) +
fmt::format(" runNumber : {}\n", h.runNumber);
return format_to(ctx.out(), "{}", res);
return fmt::format_to(ctx.out(), "{}", res);
}
};

Expand Down

0 comments on commit dc25227

Please sign in to comment.