From 5ef08f4172b9c3bcf1c8455d4dbd81b3630d3828 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Mon, 27 Mar 2023 21:30:42 +0200 Subject: [PATCH] added constraints for std format --- include/spdlog/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index fdeae6a0..b7297d3e 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -162,6 +162,7 @@ struct format_string_wrapper {} #else template + requires std::is_convertible_v SPDLOG_CONSTEXPR format_string_wrapper(S fmtstr, details::source_location loc = details::source_location::current()) : fmt_{fmtstr} , loc_{loc}