fix consteval macro

pull/2690/head
M. Galib Uludag 2 years ago
parent cdc2cec437
commit 9d1eba2f62

@ -112,8 +112,10 @@
catch (const std::exception &) {} catch (const std::exception &) {}
#endif #endif
#if SPDLOG_CPLUSPLUS > 201703L #if SPDLOG_CPLUSPLUS >= 202002L
#if __cpp_consteval >= 202211L
# define SPDLOG_CONSTEVAL consteval # define SPDLOG_CONSTEVAL consteval
# endif
#elif SPDLOG_CPLUSPLUS < 201402L #elif SPDLOG_CPLUSPLUS < 201402L
# define SPDLOG_CONSTEVAL # define SPDLOG_CONSTEVAL
#else #else
@ -163,7 +165,7 @@ struct format_string_wrapper
: fmt_{fmtstr} : fmt_{fmtstr}
, loc_{loc} , loc_{loc}
{} {}
#else #elif defined(SPDLOG_USE_STD_FORMAT) && SPDLOG_CPLUSPLUS >= 202002L && __cpp_concepts >= 202002L
template <typename S> template <typename S>
requires std::is_convertible_v<S, T> 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())

Loading…
Cancel
Save