Add make_printf_args

Fixes #687
This commit is contained in:
Germán Méndez Bravo 2018-03-26 12:42:40 -06:00 committed by Victor Zverovich
parent 4fea018b2d
commit 7a41d61d79

View File

@ -540,6 +540,10 @@ struct printf_context {
std::back_insert_iterator<Buffer>, typename Buffer::value_type> type;
};
template <typename ...Args>
inline arg_store<printf_context<internal::buffer>::type, Args...> make_printf_args(const Args & ... args) {
return arg_store<printf_context<internal::buffer>::type, Args...>(args...);
}
typedef basic_format_args<printf_context<internal::buffer>::type> printf_args;
inline std::string vsprintf(string_view format, printf_args args) {