Default Context to format_context

This commit is contained in:
Victor Zverovich 2018-11-18 07:19:25 -08:00
parent 16b78ee629
commit 6c95fb3562

View File

@ -1184,14 +1184,10 @@ const long long format_arg_store<Context, Args...>::TYPES = get_types();
can be omitted in which case it defaults to `~fmt::context`. can be omitted in which case it defaults to `~fmt::context`.
\endrst \endrst
*/ */
template <typename Context, typename ...Args> template <typename Context = format_context, typename ...Args>
inline format_arg_store<Context, Args...> inline format_arg_store<Context, Args...>
make_format_args(const Args &... args) { return {args...}; } make_format_args(const Args &... args) { return {args...}; }
template <typename ...Args>
inline format_arg_store<format_context, Args...>
make_format_args(const Args &... args) { return {args...}; }
/** Formatting arguments. */ /** Formatting arguments. */
template <typename Context> template <typename Context>
class basic_format_args { class basic_format_args {