From 9382b76f2aa70be88a1be31738998edd22b3ad31 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 8 Apr 2018 07:09:34 -0700 Subject: [PATCH] context_t -> format_context_t --- include/fmt/format.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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()}; }