Skip to content

std::format - how to best use with a runtime fmt string? #4099

Closed Answered by sylveon
nuuSolutions asked this question in Q&A
Discussion options

You must be logged in to vote

Because the format string is provided at runtime, it makes sense for the format args to also be provided at runtime and not statically determined, that's what std::make_format_args is for.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sylveon
Comment options

Answer selected by StephanTLavavej
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants