fix consteval macro

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

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

Loading…
Cancel
Save