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

Consider using fmtlib over printf #702

Open
rajsite opened this issue Jul 6, 2023 · 2 comments
Open

Consider using fmtlib over printf #702

rajsite opened this issue Jul 6, 2023 · 2 comments

Comments

@rajsite
Copy link
Member

rajsite commented Jul 6, 2023

Has some nice perf wins and can maybe coalesce the via Print %z specifier into it with the custom types support: https://github.com/fmtlib/fmt

@sanmut
Copy link
Contributor

sanmut commented Jul 6, 2023

I agree this is a good one to use. If we upgrade to compilers supporting C++20, this is part of the standard library, and we would not need external dependency.

@rajsite
Copy link
Member Author

rajsite commented Jul 6, 2023

Ah cool, didn't know that! Just for my curiosity, here is a SO on some of the libfmt features not in C++ standard library: https://stackoverflow.com/a/63587221/338923

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