https://bugs.llvm.org/show_bug.cgi?id=44592
Bug ID: 44592
Summary: shared_ptr<T[]> not constructible from a pointer
Product: libc++
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
>From StackOverflow (https://stackoverflow.com/q/59813395/2069064), this
program:
#include <memory>
std::shared_ptr<int[]> sp(new int[3]);
fails to compile with, complaining about no matching constructor. But it should
work, and works on libstdc++.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs