Skip to content
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

Allow getting size of dynamic format arg store #4270

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

hannes-harnisch
Copy link
Contributor

Getting the size of the dynamic format arg store is useful if you use that class to dynamically pass around sets of format arguments and want to perform additional verification.

In my case, I am using it to check whether a message, that I'm applying the format args to, has the correct amount of placeholders and currently I have to track the arg count separately, even though that information is already present in the fmt::dynamic_format_arg_store.

@vitaut vitaut merged commit 7c50da5 into fmtlib:master Dec 19, 2024
45 checks passed
@vitaut
Copy link
Contributor

vitaut commented Dec 19, 2024

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants