From 88dd8fdd8466675a37ad7c4969e5e3d65829a0ff Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Thu, 8 Aug 2024 14:41:59 -0400 Subject: [PATCH] fix: actually catch issues at compiletime on C++17 --- src/iguana/algorithms/clas12/EventBuilderFilter/Algorithm.cc | 2 +- src/iguana/services/Object.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iguana/algorithms/clas12/EventBuilderFilter/Algorithm.cc b/src/iguana/algorithms/clas12/EventBuilderFilter/Algorithm.cc index 20c907b9..224276ce 100644 --- a/src/iguana/algorithms/clas12/EventBuilderFilter/Algorithm.cc +++ b/src/iguana/algorithms/clas12/EventBuilderFilter/Algorithm.cc @@ -53,7 +53,7 @@ namespace iguana::clas12 { void EventBuilderFilter::Stop() { - NEWLOG("test newlog {} {}", 7); + NEWLOG("test newlog {}", 7); } } diff --git a/src/iguana/services/Object.h b/src/iguana/services/Object.h index a3fcf3e4..bacb3cfe 100644 --- a/src/iguana/services/Object.h +++ b/src/iguana/services/Object.h @@ -65,5 +65,5 @@ namespace iguana { #define NEWLOG(fmt_str, ...) \ PrintLog( \ fmt::format("[{}]", fmt::styled(m_name, fmt::emphasis::bold | fmt::fg(fmt::terminal_color::magenta))), \ - fmt_str, \ + FMT_STRING(fmt_str), \ __VA_ARGS__);