[Bug libstdc++/46148] New: [C++0x] std::map lacks a template <class T> insert<iter, T&&> overload

tom.prince at ualberta dot net gcc-bugzilla@gcc.gnu.org
Sat Oct 23 14:47:00 GMT 2010


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];
}



More information about the Gcc-bugs mailing list