[libcxx-commits] [clang] [libcxx] [Clang] Add detailed notes explaining why `is_constructible` evaluates to false (Revert 16d5db7) (PR #151935)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 4 11:44:45 PDT 2025


================
@@ -845,7 +845,7 @@ class expected : private __expected_base<_Tp, _Err> {
   }
 
   _LIBCPP_HIDE_FROM_ABI constexpr const _Tp&& value() const&& {
-    static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()))>,
+    static_assert(bool(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()))>),
----------------
EricWF wrote:

Let's drop this change and work around the expected tests wholly within the tests.

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


More information about the libcxx-commits mailing list