[PATCH] streambuf_iterator: avoid debug-dependent behaviour
François Dumont
frs.dumont@gmail.com
Fri Sep 8 06:15:00 GMT 2017
On 08/09/2017 07:47, Petr Ovtchenkov wrote:
> -gcc-patches
>
> On Thu, 7 Sep 2017 23:02:15 +0200
> François Dumont <frs.dumont@gmail.com> wrote:
>
>> + _M_c = _M_sbuf->sgetc();
>> + if (_S_at_eof(_M_c))
>> + _M_sbuf = 0;
> _M_sbuf = 0; <--- Is not what I expect here.
I know but I didn't say that I agree with all your patch.
I only agree with your remark about current implementation being
debug-dependant which I have been able to prove with a test case at the
cost of a small change in the current implementation to fix another problem.
More information about the Libstdc++
mailing list