You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My formatter for a custom type has C++20 delegates to a function that has a requirement template <std::output_iterator<char> It>. Unfortunately, that one fails when used within fmt::format_to_n, because the iterator found in ctx.out() is of type fmt::v6::internal::truncating_iterator<char*, std::false_type>. That one fails to be a std::output_iterator, apparently because it is missing default construction. Potentially, there are other requirements missing.
Is there fundamentally preventing that object from being an output iterator, or has the requirement simply not come up before?
The text was updated successfully, but these errors were encountered:
burnpanck
changed the title
truncating_iterator (and perhaps others) aren't std::output_iterator
truncating_iterator is no std::output_iterator
Feb 28, 2021
My formatter for a custom type has C++20 delegates to a function that has a requirement
template <std::output_iterator<char> It>
. Unfortunately, that one fails when used withinfmt::format_to_n
, because the iterator found inctx.out()
is of typefmt::v6::internal::truncating_iterator<char*, std::false_type>
. That one fails to be astd::output_iterator
, apparently because it is missing default construction. Potentially, there are other requirements missing.Is there fundamentally preventing that object from being an output iterator, or has the requirement simply not come up before?
The text was updated successfully, but these errors were encountered: