From 299e22318d25d3e30636a362507f98a36b948b09 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Mon, 27 Mar 2023 11:19:51 +0200 Subject: [PATCH] fixed fmt runtime --- include/spdlog/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 6bab7173..ab356986 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -157,6 +157,10 @@ struct format_string_wrapper : fmt_{fmt} , loc_{loc} {} + format_string_wrapper(fmt::basic_runtime fmtstr, details::source_location loc = details::source_location::current()) + : fmt_{fmtstr} + , loc_{loc} + {} SPDLOG_CONSTEXPR T fmt() const { return fmt_;