]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/variant2/test/variant_lt_gt_cx.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / variant2 / test / variant_lt_gt_cx.cpp
index b5708464f01d52ab782ff3bd0469b7e4705c9cef..6d1dfc9cb7da41f38c769cf14308d76690eeb89b 100644 (file)
@@ -86,6 +86,15 @@ int main()
         STATIC_ASSERT( !(v1 <= v2) );
         STATIC_ASSERT( !(v1 >= v2) );
     }
+
+    {
+        constexpr variant<monostate> v1, v2;
+
+        STATIC_ASSERT( !(v1 < v2) );
+        STATIC_ASSERT( !(v1 > v2) );
+        STATIC_ASSERT( v1 <= v2 );
+        STATIC_ASSERT( v1 >= v2 );
+    }
 }
 
 #endif