[libcxx-commits] [libcxx] P1957R2: remove special-case for booleans in std::variant (PR #71502)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 15 08:21:30 PST 2023


================
@@ -145,8 +145,8 @@ void test_T_assignment_sfinae() {
     };
     static_assert(!std::is_assignable<V, X>::value,
                   "no boolean conversion in operator=");
-    static_assert(!std::is_assignable<V, std::false_type>::value,
-                  "no converted to bool in operator=");
+    static_assert(std::is_assignable<V, std::false_type>::value,
----------------
ldionne wrote:

Can we add a runtime test for the assignment behavior change too?

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


More information about the libcxx-commits mailing list