diff --git a/include/fmt/core.h b/include/fmt/core.h index caf9904c..3d0090b3 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -317,9 +317,9 @@ FMT_BEGIN_NAMESPACE FMT_MODULE_EXPORT_BEGIN // Implementations of enable_if_t and other metafunctions for older systems. -template +template using enable_if_t = typename std::enable_if::type; -template +template using conditional_t = typename std::conditional::type; template using bool_constant = std::integral_constant; template @@ -333,11 +333,10 @@ struct monostate { constexpr monostate() {} }; -// Eliminate "unused variable" warnings on all compilers. The -// `(void)var` method does not work on many intel compilers. This is -// from Herb Sutter, "Shutting up compiler warnings", -// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/ -template FMT_CONSTEXPR void ignore_unused(const Ts&...) {} +// Suppress "unused variable" warnings with the method described in +// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/. +// (void)var does not work on many Intel compilers. +template FMT_CONSTEXPR void ignore_unused(const T&...) {} // An enable_if helper to be used in template parameters which results in much // shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed