-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
FMT_COMPILE vs FMT_STRING vs ""_format() #1772
Comments
Yes,
|
Documentation was a bit misleading. Many people assume that fmt does compile time checks by default, while it requires the use of `FMT_STRING`. It was also unclear that FMT_COMPILE does the same checks. fmtlib#1772
Thanks for clarifying. I would say the documentation could be more explicit. I gave it a try. |
* Trying to clear ambiguous compile time claims Documentation was a bit misleading. Many people assume that fmt does compile time checks by default, while it requires the use of `FMT_STRING`. It was also unclear that FMT_COMPILE does the same checks. #1772 * Update api.rst
* Trying to clear ambiguous compile time claims Documentation was a bit misleading. Many people assume that fmt does compile time checks by default, while it requires the use of `FMT_STRING`. It was also unclear that FMT_COMPILE does the same checks. fmtlib/fmt#1772 * Update api.rst
The documentation is not extremely clear about the difference between the 3 ways I found to have compile-time format string checks. I would like to try to PR an improvement to the documentation, but first I need to be sure
FMT_STRING
version, but not using a macro is nice, or is the speed boost fromFMT_COMPILE
usually worth it?Bonus question, is there one which has a chance to land in
std::format
?The text was updated successfully, but these errors were encountered: