You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen that the newest release of fmt allows for the following line of code: fmt::vsprintf("%d %d", fmt::make_printf_args(42, 43));
I am attempting to do something similar by calling vsprintf like so: fmt::vsprintf("%d %d", fmt::make_printf_args(vector<int> foobar))
or ideally: fmt::vsprintf("%d %d", vector<int> foobar)
I have seen that functionality exists to call fmt::vformat() by creating your own argument vector using a similar workflow to that shown below, but have not been able to find a solution for vsprintf (see #819) :
using ctx = fmt::printf_context;
std::vector<fmt::basic_format_args<ctx>> args;
args.emplace_back(fmt::internal::make_arg<ctx>(42));
args.emplace_back(fmt::internal::make_arg<ctx>("abc1"));
args.emplace_back(fmt::internal::make_arg<ctx>(1.2f));
The text was updated successfully, but these errors were encountered:
I have seen that the newest release of fmt allows for the following line of code:
fmt::vsprintf("%d %d", fmt::make_printf_args(42, 43));
I am attempting to do something similar by calling vsprintf like so:
fmt::vsprintf("%d %d", fmt::make_printf_args(vector<int> foobar))
or ideally:
fmt::vsprintf("%d %d", vector<int> foobar)
I have seen that functionality exists to call fmt::vformat() by creating your own argument vector using a similar workflow to that shown below, but have not been able to find a solution for vsprintf (see #819) :
The text was updated successfully, but these errors were encountered: