mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Simplify format_args
This commit is contained in:
parent
a138221813
commit
1929df4bc2
@ -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 {};
|
||||||
|
Loading…
Reference in New Issue
Block a user