http://llvm.org/bugs/show_bug.cgi?id=9444

           Summary: Valid insertion for map rejected in C++0x mode
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The following code:

#include <map>

int main(void)
{
    std::map<int, void*> m;
    std::pair<int, int*> p;
    m.insert(m.begin(),p);
}

Does not compile in c++0x mode in libc++. I believe this should work, as p is
moveinsertable for m.

I'm not sure what the many overloads of __map_value_compare are for, so I don't
have any idea of the best way of fixing this.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to