From 7a41d61d798a5cb7f56007e20c9fc8bf0a635f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20M=C3=A9ndez=20Bravo?= Date: Mon, 26 Mar 2018 12:42:40 -0600 Subject: [PATCH] Add make_printf_args Fixes #687 --- include/fmt/printf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/printf.h b/include/fmt/printf.h index 9a189844..15bdf7b9 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -540,6 +540,10 @@ struct printf_context { std::back_insert_iterator, typename Buffer::value_type> type; }; +template +inline arg_store::type, Args...> make_printf_args(const Args & ... args) { + return arg_store::type, Args...>(args...); +} typedef basic_format_args::type> printf_args; inline std::string vsprintf(string_view format, printf_args args) {