[libcxx-commits] [libcxx] [libc++] LWG2899: Constrain move special functions of `tuple` and `unique_ptr` (PR #167211)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 10 04:44:23 PST 2025
================
@@ -208,9 +209,14 @@ class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI unique_ptr {
template <bool _Dummy = true, class = _EnableIfDeleterConstructible<_BadRValRefType<_Dummy> > >
_LIBCPP_HIDE_FROM_ABI unique_ptr(pointer __p, _BadRValRefType<_Dummy> __d) = delete;
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr(unique_ptr&& __u) _NOEXCEPT
- : __ptr_(__u.release()),
- __deleter_(std::forward<deleter_type>(__u.get_deleter())) {}
+#if _LIBCPP_STD_VER >= 20
----------------
frederick-vs-ja wrote:
OK. I'm now switching to use `__nat` trick in all modes.
https://github.com/llvm/llvm-project/pull/167211
More information about the libcxx-commits
mailing list