From 7755cdc199f552e1f1b8e162677c09d459048a8a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 4 Mar 2018 14:46:24 -0800 Subject: [PATCH] Make symbols readable --- include/fmt/core.h | 7 ++++++- include/fmt/format.cc | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 2cf83894..8953e513 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1077,7 +1077,12 @@ class basic_format_args { } }; -typedef basic_format_args format_args; +// This is a separate type rather than a typedef to make symbols readable. +struct format_args: basic_format_args { + template + format_args(Args && ... arg) + : basic_format_args(std::forward(arg)...) {}; +}; typedef basic_format_args wformat_args; namespace internal { diff --git a/include/fmt/format.cc b/include/fmt/format.cc index cff18aad..429657fb 100644 --- a/include/fmt/format.cc +++ b/include/fmt/format.cc @@ -434,7 +434,8 @@ template char internal::thousands_sep(locale_provider *lp); template void basic_fixed_buffer::grow(std::size_t); -template void internal::arg_map::init(const format_args &args); +template void internal::arg_map::init( + const basic_format_args &args); template FMT_API int internal::char_traits::format_float( char *buffer, std::size_t size, const char *format,