[libcxx-commits] [libcxx] [libc++] LWG4324: `unique_ptr<void>::operator*` is not SFINAE-friendly (PR #190919)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 22 11:58:53 PDT 2026


frederick-vs-ja wrote:

> Is that intentional?

No. But the standard effectively disallows users to take address of most standard library functions (at least since C++20), see [P0551R3](https://wg21.link/p0551r3). If one tries to do so, the implementation is allowed to reject the code.

A well-defined way is using a functor (possibly a lambda) that dereferences its argument.

https://github.com/llvm/llvm-project/pull/190919


More information about the libcxx-commits mailing list