diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 771c9a35..fdeae6a0 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -161,7 +161,8 @@ struct format_string_wrapper , loc_{loc} {} #else - SPDLOG_CONSTEXPR format_string_wrapper(const Char* fmtstr, details::source_location loc = details::source_location::current()) + template + SPDLOG_CONSTEXPR format_string_wrapper(S fmtstr, details::source_location loc = details::source_location::current()) : fmt_{fmtstr} , loc_{loc} {}