]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/test_next_decimal.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / test / test_next_decimal.cpp
index ee3b797e1f24911a75b882fdf560fb900a0a9d4e..3d532335bcaf0c56963c1092938eb89ef55ada5d 100644 (file)
@@ -17,7 +17,7 @@
 #include <iostream>
 #include <iomanip>
 
-#ifdef BOOST_MSVC
+#ifdef _MSC_VER
 #pragma warning(disable:4127)
 #endif
 
@@ -27,7 +27,7 @@ bool is_normalized_value(const T& val)
    //
    // Returns false if value has guard digits that are non-zero
    //
-   boost::intmax_t shift = std::numeric_limits<T>::digits - ilogb(val) - 1;
+   std::intmax_t shift = std::numeric_limits<T>::digits - ilogb(val) - 1;
    T shifted = scalbn(val, shift);
    return floor(shifted) == shifted;
 }
@@ -104,8 +104,8 @@ void test_value(const T& val, const char* name)
 template <class T>
 void test_values(const T& val, const char* name)
 {
-   static const T a = boost::lexical_cast<T>("1.3456724e22");
-   static const T b = boost::lexical_cast<T>("1.3456724e-22");
+   static const T a = T("1.3456724e22");
+   static const T b = T("1.3456724e-22");
    static const T z = 0;
    static const T one = 1;
    static const T radix = std::numeric_limits<T>::radix;
@@ -201,7 +201,9 @@ BOOST_AUTO_TEST_CASE( test_main )
    //test_values(boost::multiprecision::number<boost::multiprecision::debug_adaptor<boost::multiprecision::cpp_dec_float_50::backend_type> >(0), "cpp_dec_float_50");
    
    // Faster, but no good for diagnosing the cause of any issues:
+   #ifndef BOOST_MATH_STANDALONE
    test_values(boost::multiprecision::cpp_dec_float_50(0), "cpp_dec_float_50");
+   #endif
 }