This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/46148] New: [C++0x] std::map lacks a template <class T> insert<iter, T&&> overload
- From: "tom.prince at ualberta dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Oct 2010 14:47:31 +0000
- Subject: [Bug libstdc++/46148] New: [C++0x] std::map lacks a template <class T> insert<iter, T&&> overload
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46148
Summary: [C++0x] std::map lacks a template <class T>
insert<iter, T&&> overload
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: tom.prince@ualberta.net
#include <map>
class moveable {
public:
moveable(moveable&&) {}
moveable() {}
operator int () {return 0;}
};
int main () {
std::map<bool,moveable> the_map;
return the_map[true];
}