From 387395fc7c6c4ff214747a4876015c6d4f07f528 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 2 Sep 2024 14:56:17 -0700 Subject: [PATCH] Cleanup base API --- include/fmt/base.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 4d8fb6db..dce02fa1 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -360,9 +360,8 @@ template FMT_CONSTEXPR void ignore_unused(const T&...) {} constexpr auto is_constant_evaluated(bool default_value = false) noexcept -> bool { -// Workaround for incompatibility between libstdc++ consteval-based -// std::is_constant_evaluated() implementation and clang-14: -// https://github.com/fmtlib/fmt/issues/3247. +// Workaround for incompatibility between clang 14 and libstdc++ consteval-based +// std::is_constant_evaluated: https://github.com/fmtlib/fmt/issues/3247. #if FMT_CPLUSPLUS >= 202002L && FMT_GLIBCXX_RELEASE >= 12 && \ (FMT_CLANG_VERSION >= 1400 && FMT_CLANG_VERSION < 1500) ignore_unused(default_value); @@ -2319,14 +2318,7 @@ constexpr unsigned long long make_descriptor() { } // This type is intentionally undefined, only used for errors. -template -#if FMT_CLANG_VERSION && FMT_CLANG_VERSION <= 1500 -// https://github.com/fmtlib/fmt/issues/3796 -struct type_is_unformattable_for { -}; -#else -struct type_is_unformattable_for; -#endif +template struct type_is_unformattable_for; template FMT_CONSTEXPR auto make_arg(T& val) -> value {