[Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator
thunderliu at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Sep 14 01:06:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54577
Bug #: 54577
Summary: deque<T>::erase() still takes iterator instead of
const_iterator
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: thunderliu@gmail.com
In C++11 mode, deque::erase() should be able to take const_iterator instead of
iterator. It's not reflected in bits/deque.tcc yet. Checked 4.7, it's the same.
(Line 193 of bits/deque.tcc:)
template <typename _Tp, typename _Alloc>
typename deque<_Tp, _Alloc>::iterator
deque<_Tp, _Alloc>::
erase(iterator __position)
More information about the Gcc-bugs
mailing list