]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/safe_numerics/test/test_checked_less_than.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / safe_numerics / test / test_checked_less_than.cpp
index b0702ca21aca10cd341ec11f61bb13ac6a3de63c..a620f4f0409b2c812ee72fe0c4227acb38bbc65b 100644 (file)
@@ -44,7 +44,7 @@ bool test_checked_less_than(
         break;
     }
     std::cout
-        << "failed to detect error in addition "
+        << "failed to detect error in comparison "
         << std::hex << result << "(" << std::dec << result << ")"
         << " != "<< v1 << " < " << v2
         << std::endl;
@@ -90,6 +90,11 @@ struct test_unsigned_pair {
 
 int main(){
     using namespace boost::mp11;
+
+    bool x;
+    x = test_checked_less_than(77, -24, '>');
+    x = test_checked_less_than(77, 82, '<');
+
     bool rval = true;
 
     mp_for_each<