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: unassignedclangb...@nondot.org
Reporter: barry.rev...@gmail.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com
>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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs