This is the mail archive of the
mailing list for the libstdc++ project.
Re: [PATCH] streambuf_iterator: avoid debug-dependent behaviour
On 08/09/2017 07:47, Petr Ovtchenkov wrote:
On Thu, 7 Sep 2017 23:02:15 +0200
François Dumont <firstname.lastname@example.org> 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.