[LLVMbugs] [Bug 10708] New: <set> requires comparator to be copy-constructible?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 19 15:28:53 PDT 2011


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

           Summary: <set> requires comparator to be copy-constructible?
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Sort of inspired by discussion around r138098: apparently, current libstdc++
allows the following, but libc++ gives an error:

#include <set>

class A {
public:
  A();
private:
  A(const A&);
};
void B()
{
  std::set<void *, A> foo;
}

Strictly speaking, I think this is supposed to be allowed... although I doubt
it matters much in practice.

-- 
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