From dc252274865f005a5be6340f1673ec738985b0ae Mon Sep 17 00:00:00 2001 From: Ole Schmidt Date: Mon, 5 Feb 2024 15:14:01 +0100 Subject: [PATCH] Avoid ambiguity in format_to --- DataFormats/Headers/include/Headers/DataHeaderHelpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataFormats/Headers/include/Headers/DataHeaderHelpers.h b/DataFormats/Headers/include/Headers/DataHeaderHelpers.h index 41d59090e0274..0fa179c6e83aa 100644 --- a/DataFormats/Headers/include/Headers/DataHeaderHelpers.h +++ b/DataFormats/Headers/include/Headers/DataHeaderHelpers.h @@ -40,7 +40,7 @@ struct fmt::formatter::value, c template auto format(const T& p, FormatContext& ctx) { - return format_to(ctx.out(), "{}", p.template as()); + return fmt::format_to(ctx.out(), "{}", p.template as()); } }; @@ -79,7 +79,7 @@ struct fmt::formatter { 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); } };