public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator
@ 2012-09-14  1:06 thunderliu at gmail dot com
  2012-09-14  9:41 ` [Bug libstdc++/54577] " paolo.carlini at oracle dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: thunderliu at gmail dot com @ 2012-09-14  1:06 UTC (permalink / raw)
  To: gcc-bugs

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)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-10 15:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-14  1:06 [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator thunderliu at gmail dot com
2012-09-14  9:41 ` [Bug libstdc++/54577] " paolo.carlini at oracle dot com
2012-09-30 11:40 ` redi at gcc dot gnu.org
2012-12-13 15:31 ` paolo.carlini at oracle dot com
2013-05-03 12:40 ` paolo.carlini at oracle dot com
2013-05-10 15:19 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).