This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/57158] New: std::list.erase(const_iterator pos) not implemented
- From: "mattyclarkson at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 May 2013 10:23:17 +0000
- Subject: [Bug libstdc++/57158] New: std::list.erase(const_iterator pos) not implemented
- Auto-submitted: auto-generated
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.