This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/39416] std::map::operator[] inserts a new item in RHS context
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Mar 2009 21:28:50 -0000
- Subject: [Bug libstdc++/39416] std::map::operator[] inserts a new item in RHS context
- References: <bug-39416-17417@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-03-09 21:28 -------
It is hard for the library to know if we are doing an insert or doing an
extract as there is only one type of operator[] really.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39416