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

has cppformat has compile-time checking support like printf or sprintf? #166

Closed
zjay1987 opened this issue May 25, 2015 · 2 comments
Closed

has cppformat has compile-time checking support like printf or sprintf? #166

zjay1987 opened this issue May 25, 2015 · 2 comments

Comments

@zjay1987
Copy link

@zjay1987 zjay1987 commented May 25, 2015

for example, the follow statment

printf("hello, %s\n", 1);

will fire an compiler warning, but cppformat library does not

@vitaut
Copy link
Contributor

@vitaut vitaut commented May 25, 2015

You can use a simple trick described in #62 (comment) to get similar compile-time checking with C++ Format.

@vitaut vitaut closed this May 25, 2015
@vitaut
Copy link
Contributor

@vitaut vitaut commented Nov 6, 2017

Compile-time format string checks are now available: http://zverovich.net/2017/11/05/compile-time-format-strings.html

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

Successfully merging a pull request may close this issue.

None yet
2 participants