added constraints for std format

pull/2690/head
M. Galib Uludag 2 years ago committed by GitHub
parent 807ad65cca
commit 5ef08f4172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -162,6 +162,7 @@ struct format_string_wrapper
{} {}
#else #else
template <typename S> template <typename S>
requires std::is_convertible_v<S, T>
SPDLOG_CONSTEXPR format_string_wrapper(S fmtstr, details::source_location loc = details::source_location::current()) SPDLOG_CONSTEXPR format_string_wrapper(S fmtstr, details::source_location loc = details::source_location::current())
: fmt_{fmtstr} : fmt_{fmtstr}
, loc_{loc} , loc_{loc}

Loading…
Cancel
Save