-
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
format_to_n do not write characters #778
Comments
This works on the latest #include "fmt/format.h"
#include <array>
int main() {
std::array<char, 1> field{};
fmt::format_to_n(field.begin(), 1, "{}", 'a');
fmt::print("{}", field[0]); // prints 'a'
} Not sure if it is related, but your first assert seems invalid (probably should be |
This may work on master, but it is broken in the latest release, 5.0.0. |
Yes, I plan to release a new minor version soon. |
Version 5.1.0 which includes this fix among other things has been released: https://github.com/fmtlib/fmt/releases/tag/5.1.0 |
No problems with format_to.
The text was updated successfully, but these errors were encountered: