New issue
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
Please add compile-time argument count checking #544
Comments
Something like there: |
Thanks for the suggestion, but note that the number of placeholders doesn't have to be the same as the number of arguments because there can be multiple placeholders referring to the same arguments: fmt::format("{0}{0}", 42); That said I plan to add a |
Adding |
Compile-time format string checks are now available: http://zverovich.net/2017/11/05/compile-time-format-strings.html (note that it is still allowed not to use some arguments). |
Will be good if fmtlib will check number of arguments matched to number of arguments placeholders in format string.
The text was updated successfully, but these errors were encountered: