public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/57158] New: std::list.erase(const_iterator pos) not implemented
@ 2013-05-03 10:23 mattyclarkson at gmail dot com
  2013-05-03 10:36 ` [Bug libstdc++/57158] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mattyclarkson at gmail dot com @ 2013-05-03 10:23 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158

             Bug #: 57158
           Summary: std::list.erase(const_iterator pos) not implemented
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mattyclarkson@gmail.com


#include <list>

int main() {
  std::list<int> list;
  list.emplace_back(15);
  list.emplace_back(14);
  list.erase(list.begin());  // OK
  list.erase(list.cbegin()); // Not implemented
  return 0;
}

As per 23.3.5.4 of the standard.

The other containers need implementations too.

Not the end of the world and it might be already on your roadmap for the
library.


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

* [Bug libstdc++/57158] std::list.erase(const_iterator pos) not implemented
  2013-05-03 10:23 [Bug libstdc++/57158] New: std::list.erase(const_iterator pos) not implemented mattyclarkson at gmail dot com
@ 2013-05-03 10:36 ` paolo.carlini at oracle dot com
  2013-05-03 10:36 ` redi at gcc dot gnu.org
  2013-05-03 12:21 ` mattyclarkson at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-03 10:36 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-05-03 10:36:15 UTC ---
Matter of priorities. Note that unordered and associative containers and
forward_list are already fine.


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

* [Bug libstdc++/57158] std::list.erase(const_iterator pos) not implemented
  2013-05-03 10:23 [Bug libstdc++/57158] New: std::list.erase(const_iterator pos) not implemented mattyclarkson at gmail dot com
  2013-05-03 10:36 ` [Bug libstdc++/57158] " paolo.carlini at oracle dot com
@ 2013-05-03 10:36 ` redi at gcc dot gnu.org
  2013-05-03 12:21 ` mattyclarkson at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2013-05-03 10:36 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-05-03 10:36:00 UTC ---
yes, this is known and documented:
http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2011

*** This bug has been marked as a duplicate of bug 54577 ***


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

* [Bug libstdc++/57158] std::list.erase(const_iterator pos) not implemented
  2013-05-03 10:23 [Bug libstdc++/57158] New: std::list.erase(const_iterator pos) not implemented mattyclarkson at gmail dot com
  2013-05-03 10:36 ` [Bug libstdc++/57158] " paolo.carlini at oracle dot com
  2013-05-03 10:36 ` redi at gcc dot gnu.org
@ 2013-05-03 12:21 ` mattyclarkson at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mattyclarkson at gmail dot com @ 2013-05-03 12:21 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158

--- Comment #3 from Matt Clarkson <mattyclarkson at gmail dot com> 2013-05-03 12:21:22 UTC ---
Thanks, glad it's been reported.


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

end of thread, other threads:[~2013-05-03 12:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-03 10:23 [Bug libstdc++/57158] New: std::list.erase(const_iterator pos) not implemented mattyclarkson at gmail dot com
2013-05-03 10:36 ` [Bug libstdc++/57158] " paolo.carlini at oracle dot com
2013-05-03 10:36 ` redi at gcc dot gnu.org
2013-05-03 12:21 ` mattyclarkson at gmail 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).