-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
The format_to functions claim OutputIterator support but actually expect a back_insert_iterator #1506
Comments
(Note that I ran into this using |
#include <fmt/format.h>
int main() {
char buf[10];
fmt::format_to_n(buf, 10, "{}", 42);
} |
My mistake, I should've given an example: https://godbolt.org/z/_edHPs |
vitaut
added a commit
that referenced
this issue
Jan 5, 2020
vitaut
added a commit
that referenced
this issue
Jan 5, 2020
vitaut
added a commit
that referenced
this issue
Jan 5, 2020
Thanks for the example. Should be fixed in 9e3f3e8. |
Awesome, thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for a useful library!
As best I can tell, both
container_type
andoperator=
are specific to back_insert_iterator, and not a part of OutputIterator. So these functions don't actually support output iterators.It seems like either the code needs to be modified to use just the OutputIterator operations or the documentation should be updated.
The text was updated successfully, but these errors were encountered: