-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Manually construct ArgList and pass to fmt::print #401
Comments
Yes, although this method relies on internal APIs at the moment: #330 (comment) |
Hello, I just updated latest version of fmtlib to my project and the old code won't compile. How to achieve the same thing as #330 (comment) with latest version?
|
@Mark-Joy, it is much simpler in the latest version and you don't need to use internal APIs any more: fmt::vprintf("%d %d", fmt::make_printf_args(42, 43)); Compiler Explorer: https://godbolt.org/g/74wSR7 |
@vitaut, Thank you for your answer.
How about constructing arglist using a for loop as in this comment ? |
@Mark-Joy there is no API for constructing arglist in a for loop unfortunately. It should be possible to write one, but noone has done it yet. |
Hello,
Is there a way to manually construct the ArgList, add new arg to ArgList and then pass it to fmt::print.
Something like:
Thank you
The text was updated successfully, but these errors were encountered: