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

Compile Time Checks in Argument Lists Example do not work #3108

Closed
H-M-H opened this issue Sep 21, 2022 · 1 comment
Closed

Compile Time Checks in Argument Lists Example do not work #3108

H-M-H opened this issue Sep 21, 2022 · 1 comment

Comments

@H-M-H
Copy link

H-M-H commented Sep 21, 2022

The code found here: https://fmt.dev/latest/api.html#argument-lists does not work as documented, there are no compile time checks, the following code compiles fine and produces a runtime error: https://godbolt.org/z/8oT34bhP1

My guess is that this is an error introduced with the switch from make_args_checked to make_format_args. The linked example code in the docs still assumes make_args_checked is present and thus fails to compile at the moment.

@vitaut
Copy link
Contributor

vitaut commented Sep 21, 2022

Good catch, thanks. Updated an example in 3272a7a. Godbolt: https://godbolt.org/z/6G3hG6roP.

@vitaut vitaut closed this as completed Sep 21, 2022
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

No branches or pull requests

2 participants