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_;