From 57e2773d499b48ba5abd8f35657d1fab412cac95 Mon Sep 17 00:00:00 2001 From: Muhammed Galib Uludag Date: Mon, 27 Mar 2023 14:53:22 +0200 Subject: [PATCH] fix format string wrapper ambiguity --- include/spdlog/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 91acfd0d..57ab029f 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -162,11 +162,12 @@ struct format_string_wrapper : fmt_{fmtstr} , loc_{loc} {} -#endif +#else explicit format_string_wrapper(const Char* fmtstr, details::source_location loc = details::source_location::current()) : fmt_{fmtstr} , loc_{loc} {} +#endif T fmt() { return fmt_;