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: unassig...@gcc.gnu.org
        ReportedBy: tom.pri...@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];
}

Reply via email to