[libcxx-commits] [libcxx] [libc++] Simplify the implementation of LWG2762 (noexcept for unique_ptr) (PR #102032)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 5 11:25:06 PDT 2024


ldionne wrote:

> IIRC there were issue to test `static_assert(noexcept(unique_ptr<void>::operator*()));` But let's see what the CI says.

My understanding is that `static_assert(noexcept(unique_ptr<void>::operator*()));` is ill-formed. All other implementations produce a hard-error for that case, and that seems to be what the Standard specifies.

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


More information about the libcxx-commits mailing list