Title
istreambuff_iterator::equal needs a const & parameter
Status
c++11
Section
[istreambuf.iterator.ops]
Submitter
Alisdair Meredith

Created on 2009-05-28.00:00:00 last changed 161 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Ammend in both:
[istreambuf.iterator]
[istreambuf.iterator::equal]

bool equal(const istreambuf_iterator& b) const;
Date: 2009-11-02.00:00:00

[ 2009-11-02 Howard adds: ]

Set to Tentatively Ready after 5 positive votes on c++std-lib.

Date: 2010-10-21.18:28:33

[ The proposed wording is consistent with 110 with status TC1. ]

Date: 2009-05-28.00:00:00

The equal member function of istreambuf_iterator is declared const, but takes its argument by non-const reference.

This is not compatible with the operator== free function overload, which is defined in terms of calling equal yet takes both arguments by reference to const.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg839
2010-10-21 18:28:33adminsetmessages: + msg838
2010-10-21 18:28:33adminsetmessages: + msg837
2009-05-28 00:00:00admincreate