[LLVMbugs] [Bug 9444] New: Valid insertion for map rejected in C++0x mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 9 14:07:29 PST 2011


           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: hhinnant at apple.com
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu

The following code:

#include <map>

int main(void)
    std::map<int, void*> m;
    std::pair<int, int*> 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.

More information about the llvm-bugs mailing list