]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/special_functions/ulp.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / math / special_functions / ulp.hpp
index 06e72bce1684b811f9f76aeed41b83b1f7a76203..e78cd42e5a054381b523db241e082e12300c72cc 100644 (file)
@@ -18,7 +18,7 @@
 namespace boost{ namespace math{ namespace detail{
 
 template <class T, class Policy>
-T ulp_imp(const T& val, const boost::true_type&, const Policy& pol)
+T ulp_imp(const T& val, const std::true_type&, const Policy& pol)
 {
    BOOST_MATH_STD_USING
    int expon;
@@ -50,10 +50,10 @@ T ulp_imp(const T& val, const boost::true_type&, const Policy& pol)
 }
 // non-binary version:
 template <class T, class Policy>
-T ulp_imp(const T& val, const boost::false_type&, const Policy& pol)
+T ulp_imp(const T& val, const std::false_type&, const Policy& pol)
 {
-   BOOST_STATIC_ASSERT(std::numeric_limits<T>::is_specialized);
-   BOOST_STATIC_ASSERT(std::numeric_limits<T>::radix != 2);
+   static_assert(std::numeric_limits<T>::is_specialized, "Type T must be specialized.");
+   static_assert(std::numeric_limits<T>::radix != 2, "Type T must be specialized.");
    BOOST_MATH_STD_USING
    int expon;
    static const char* function = "ulp<%1%>(%1%)";
@@ -89,7 +89,7 @@ template <class T, class Policy>
 inline typename tools::promote_args<T>::type ulp(const T& val, const Policy& pol)
 {
    typedef typename tools::promote_args<T>::type result_type;
-   return detail::ulp_imp(static_cast<result_type>(val), boost::integral_constant<bool, !std::numeric_limits<result_type>::is_specialized || (std::numeric_limits<result_type>::radix == 2)>(), pol);
+   return detail::ulp_imp(static_cast<result_type>(val), std::integral_constant<bool, !std::numeric_limits<result_type>::is_specialized || (std::numeric_limits<result_type>::radix == 2)>(), pol);
 }
 
 template <class T>