]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/safe_numerics/test/test_cast.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / safe_numerics / test / test_cast.cpp
index 57b8c33a28a2a039e2332bd58a144ca39a9d3a9d..a7b48b8d2b359c739097186c31b03e8f455dc8fd 100644 (file)
@@ -54,7 +54,7 @@ bool test_cast(T1 v1, const char *t2_name, const char *t1_name){
         }
     }
     {
-        /* test conversion to T1 from safe<T2>(v2) */
+        /* test conversion to T2 from safe<T1>(v1) */
         safe<T1> s1(v1);
         try{
             auto result = static_cast<T2>(s1);
@@ -93,15 +93,6 @@ bool test_cast(T1 v1, const char *t2_name, const char *t1_name){
 
 using namespace boost::mp11;
 
-template<typename T>
-using extract_value_type = typename T::value_type;
-using test_types = mp_unique<
-    mp_transform<
-        extract_value_type,
-        test_values
-    >
->;
-
 struct test {
     bool m_error;
     test(bool b = true) : m_error(b) {}