This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]