We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
#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
The text was updated successfully, but these errors were encountered:
I've noticed the issue doesn't happen if the named arguments come after all the positional arguments. godbolt link
Sorry, something went wrong.
Fix issue fmtlib#3817
b089024
It was supposed to be an error similarly to mixing manual/automatic indexing but the check was missing. Fixed in 4c5b4af. Thanks for reporting.
Successfully merging a pull request may close this issue.
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
The text was updated successfully, but these errors were encountered: