Skip to content

Commit

Permalink
Add make_printf_args
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronuz authored Mar 26, 2018
1 parent 4fea018 commit f7ad18e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/fmt/printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f7ad18e

Please sign in to comment.