diff --git a/include/spdlog/common.h b/include/spdlog/common.h index f0228ba1..465e848a 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -138,7 +138,8 @@ struct source_loc template struct format_string_wrapper { - SPDLOG_CONSTEXPR format_string_wrapper(const char *fmt, details::source_location loc = details::source_location::current()) + template + SPDLOG_CONSTEXPR format_string_wrapper(S fmt, details::source_location loc = details::source_location::current()) : fmt_{fmt} , loc_{loc} {}