diff --git a/include/fmt/format.h b/include/fmt/format.h index 5b304aec..1c5a6c36 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3393,13 +3393,14 @@ inline wformat_context::iterator format_to( } template -//using context_t = basic_format_context; -struct context_t { typedef basic_format_context type; }; +//using format_context_t = basic_format_context; +struct format_context_t { typedef basic_format_context type; }; template -//using format_args_t = basic_format_args>; +//using format_args_t = basic_format_args>; struct format_args_t { - typedef basic_format_args::type> type; + typedef basic_format_args< + typename format_context_t::type> type; }; template @@ -3413,7 +3414,7 @@ template inline OutputIt format_to(OutputIt out, string_view format_str, const Args & ... args) { return vformat_to(out, format_str, - *make_args::type>(args...)); + *make_args::type>(args...)); } template @@ -3444,7 +3445,7 @@ inline format_to_n_result format_to_n( OutputIt out, std::size_t n, string_view format_str, const Args & ... args) { typedef internal::truncating_iterator It; auto it = vformat_to(It(out, n), format_str, - *make_args::type>(args...)); + *make_args::type>(args...)); return {it.base(), it.count()}; }