This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Silently passing wrong input for good one
Paolo Carlini wrote:
>Actually, I'm not sure about the best way to fix the standard :( Maybe,
>as you suggested, we can fix it for a specialization to pointers... I'm
>afraid that as long as general input iterators are mentioned it's hard
>to make progress.
>
>
Another option would be to just fail in that case. But then we have to
avoid mentioning scanf or, at least, ask the C committee for a
clarification about the behavior of the latter, because, at variance
with EXAMPLE 3 that interestingly you mention, *all* the implementions
that you mentioned, *succesfully* extract -3.0, the divergence in
behavior is only about what happens afterwards!
Paolo.