When using the dynamic_format_arg_store with both named and positional args on fmt, the output produced is incorrect.
A minimal reproduction of the issue is shown in the snippet below:
A minimal reproduction of the issue is shown in the snippet below:
#include <fmt/args.h>
#include <fmt/core.h>
int main() {
fmt::dynamic_format_arg_store<fmt::format_context> store;
store.push_back(1);
store.push_back(fmt::arg("b", 2));
store.push_back(3);
// Prints 1 2 2 instead of 1 2 3
fmt::vprint("{} {b} {}", store);
}
godbolt link
When using the dynamic_format_arg_store with both named and positional args on fmt, the output produced is incorrect.
A minimal reproduction of the issue is shown in the snippet below:
A minimal reproduction of the issue is shown in the snippet below:
godbolt link