This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/57158] New: std::list.erase(const_iterator pos) not implemented


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]