Silently passing wrong input for good one

Paolo Carlini pcarlini@suse.de
Sat Oct 22 00:03:00 GMT 2005


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.



More information about the Libstdc++ mailing list