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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@vitaut

vitaut May 25, 2015

Contributor

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

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@vitaut

vitaut Nov 6, 2017

Contributor

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

Contributor

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