std::codecvt::out() returns a no-op in marginal situations
Paolo Carlini
pcarlini@suse.de
Mon Jan 21 11:30:00 GMT 2008
Sam Varshavchik wrote:
> So, if out() returns with:
>
> 1) from_next < from_end, and
>
> 2) to_next < to_end
>
> then can I assume that out() wants a larger output buffer?
In short, I think so. I cannot imagine how things could be different:
one internal element is enough for a meaningful conversion, and you know
you have got it. And you have a partial return value. The only possible
explanation is that the output buffer is too small.
Paolo.
More information about the Libstdc++
mailing list