diff --git a/include/fmt/base.h b/include/fmt/base.h index 1c2b59fa..8bf02c38 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2877,8 +2877,6 @@ struct formatter constexpr T& identity(T& x) { return x; } - /** * Constructs an object that stores references to arguments and can be * implicitly converted to `format_args`. `Context` can be omitted in which case @@ -2889,27 +2887,13 @@ template constexpr T& identity(T& x) { return x; } template (), - unsigned long long DESC = detail::make_descriptor(), - FMT_ENABLE_IF(NUM_NAMED_ARGS == 0)> + unsigned long long DESC = detail::make_descriptor()> constexpr FMT_ALWAYS_INLINE auto make_format_args(T&... args) - -> detail::format_arg_store { + -> detail::format_arg_store { FMT_GCC_PRAGMA(GCC diagnostic ignored "-Wconversion") return {{args...}}; } -#ifndef FMT_DOC -template (), - unsigned long long DESC = - detail::make_descriptor() | - static_cast(detail::has_named_args_bit), - FMT_ENABLE_IF(NUM_NAMED_ARGS != 0)> -constexpr auto make_format_args(T&... args) - -> detail::format_arg_store { - return {{args...}}; -} -#endif - template using vargs = detail::format_arg_store