Simplify format_args

This commit is contained in:
Victor Zverovich 2020-04-19 09:21:39 -07:00
parent a138221813
commit 1929df4bc2

View File

@ -1645,14 +1645,10 @@ template <typename Context> class basic_format_args {
/** An alias to ``basic_format_args<context>``. */ /** An alias to ``basic_format_args<context>``. */
// It is a separate type rather than an alias to make symbols readable. // It is a separate type rather than an alias to make symbols readable.
struct format_args : basic_format_args<format_context> { struct format_args : basic_format_args<format_context> {
template <typename... Args> using basic_format_args::basic_format_args;
format_args(Args&&... args)
: basic_format_args<format_context>(static_cast<Args&&>(args)...) {}
}; };
struct wformat_args : basic_format_args<wformat_context> { struct wformat_args : basic_format_args<wformat_context> {
template <typename... Args> using basic_format_args::basic_format_args;
wformat_args(Args&&... args)
: basic_format_args<wformat_context>(static_cast<Args&&>(args)...) {}
}; };
template <typename Container> struct is_contiguous : std::false_type {}; template <typename Container> struct is_contiguous : std::false_type {};