We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to format an empty string_view, fmtlib raises a FormatError because the contained pointer is nullptr. Minimal example:
#include <string_view> #include <fmt/format.h> int main() { std::string_view x; fmt::print("{}\n", x); return 0; }
I'd expect an empty string to be printed.
The text was updated successfully, but these errors were encountered:
Fix handling of empty string_view (#689)
8c29459
Good catch, thanks! Fixed in 8c29459.
Sorry, something went wrong.
Thanks!
No branches or pull requests
When trying to format an empty string_view, fmtlib raises a FormatError because the contained pointer is nullptr. Minimal example:
I'd expect an empty string to be printed.
The text was updated successfully, but these errors were encountered: