[libcxx-commits] [libcxx] [libc++] LWG3223 Broken requirements for shared_ptr converting constructors (PR #93071)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jun 8 16:24:55 PDT 2024
alexfh wrote:
This commit breaks the following code (https://gcc.godbolt.org/z/eoMMr6KjE):
```
std::shared_ptr<int>(
new int,
[](auto pointer) { delete pointer; }
);
```
Is this intended?
The code compiles fine with libstdc++ and with libc++ before this change.
https://github.com/llvm/llvm-project/pull/93071
More information about the libcxx-commits
mailing list