Skip to content

Allow getting size of dynamic format arg store#4270

Merged
vitaut merged 1 commit intofmtlib:masterfrom
hannes-harnisch:master
Dec 19, 2024
Merged

Allow getting size of dynamic format arg store#4270
vitaut merged 1 commit intofmtlib:masterfrom
hannes-harnisch:master

Conversation

@hannes-harnisch
Copy link
Copy Markdown
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
@vitaut
Copy link
Copy Markdown
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