https://llvm.org/bugs/show_bug.cgi?id=24514

            Bug ID: 24514
           Summary: make_shared doesn't accept temporaries in c++03 mode
           Product: libc++
           Version: 3.7
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

In C++03 the make_shared overloads take their arguments by non-const lvalue
reference which will not bind to a temporary.

If we wanted to accept temporaries we could also provide overloads that take
each argument by const lvalue reference. This would raise the amount of
overloads from 3 to 16. I'm not sure if it's worth it though.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to