Update common.h

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

@ -187,18 +187,18 @@ template<typename T>
struct wformat_string_wrapper struct wformat_string_wrapper
{ {
template <typename S> template <typename S>
SPDLOG_CONSTEVAL format_string_wrapper(S fmtstr, details::source_location loc = details::source_location::current()) SPDLOG_CONSTEVAL wformat_string_wrapper(S fmtstr, details::source_location loc = details::source_location::current())
: fmt_{fmtstr} : fmt_{fmtstr}
, loc_{loc} , loc_{loc}
{} {}
#if SPDLOG_CPLUSPLUS > 201703L #if SPDLOG_CPLUSPLUS > 201703L
#if !defined(SPDLOG_USE_STD_FORMAT) && FMT_VERSION >= 80000 #if !defined(SPDLOG_USE_STD_FORMAT) && FMT_VERSION >= 80000
format_string_wrapper(fmt::basic_runtime<wchar_t> fmtstr, details::source_location loc = details::source_location::current()) wformat_string_wrapper(fmt::basic_runtime<wchar_t> fmtstr, details::source_location loc = details::source_location::current())
: fmt_{fmtstr} : fmt_{fmtstr}
, loc_{loc} , loc_{loc}
{} {}
#else #else
explicit format_string_wrapper(const wchar_t* fmtstr, details::source_location loc = details::source_location::current()) explicit wformat_string_wrapper(const wchar_t* fmtstr, details::source_location loc = details::source_location::current())
: fmt_{fmtstr} : fmt_{fmtstr}
, loc_{loc} , loc_{loc}
{} {}

Loading…
Cancel
Save