fix consteval

pull/2690/head
M. Galib Uludag 2 years ago
parent 8d94e84814
commit 6eeb9cb902

@ -113,11 +113,7 @@
#endif #endif
#if SPDLOG_CPLUSPLUS > 201703L #if SPDLOG_CPLUSPLUS > 201703L
# if __cpp_consteval >= 201811L # define SPDLOG_CONSTEVAL consteval
# define SPDLOG_CONSTEVAL consteval
# else
# define SPDLOG_CONSTEVAL constexpr
# endif
#elif SPDLOG_CPLUSPLUS < 201402L #elif SPDLOG_CPLUSPLUS < 201402L
# define SPDLOG_CONSTEVAL # define SPDLOG_CONSTEVAL
#else #else
@ -167,7 +163,7 @@ struct format_string_wrapper
: fmt_{fmtstr} : fmt_{fmtstr}
, loc_{loc} , loc_{loc}
{} {}
#elif defined(SPDLOG_USE_STD_FORMAT) && SPDLOG_CPLUSPLUS >= 202002L && __cpp_concepts >= 202002L #elif defined(SPDLOG_USE_STD_FORMAT) && SPDLOG_CPLUSPLUS >= 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