[llvm-bugs] [Bug 24514] New: make_shared doesn't accept temporaries in c++03 mode

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 19 19:32:57 PDT 2015


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: unassignedclangbugs at nondot.org
          Reporter: eric at efcs.ca
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150820/66b5078f/attachment.html>


More information about the llvm-bugs mailing list