]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/distributions/negative_binomial.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / math / distributions / negative_binomial.hpp
index de5a68281c3df3fbc6040c3f54429f69288ea40c..34412bf4ba97587784f2d2c7203064351bb87d0b 100644 (file)
 #include <boost/math/tools/roots.hpp> // for root finding.
 #include <boost/math/distributions/detail/inv_discrete_quantile.hpp>
 
-#include <boost/type_traits/is_floating_point.hpp>
-#include <boost/type_traits/is_integral.hpp>
-#include <boost/type_traits/is_same.hpp>
-#include <boost/mpl/if.hpp>
-
 #include <limits> // using std::numeric_limits;
 #include <utility>
 
@@ -256,6 +251,11 @@ namespace boost
 
     typedef negative_binomial_distribution<double> negative_binomial; // Reserved name of type double.
 
+    #ifdef __cpp_deduction_guides
+    template <class RealType>
+    negative_binomial_distribution(RealType,RealType)->negative_binomial_distribution<typename boost::math::tools::promote_args<RealType>::type>;
+    #endif
+
     template <class RealType, class Policy>
     inline const std::pair<RealType, RealType> range(const negative_binomial_distribution<RealType, Policy>& /* dist */)
     { // Range of permissible values for random variable k.
@@ -492,7 +492,7 @@ namespace boost
       //
       // Max iterations permitted:
       //
-      boost::uintmax_t max_iter = policies::get_max_root_iterations<Policy>();
+      std::uintmax_t max_iter = policies::get_max_root_iterations<Policy>();
       typedef typename Policy::discrete_quantile_type discrete_type;
       return detail::inverse_discrete_quantile(
          dist,
@@ -579,7 +579,7 @@ namespace boost
        //
        // Max iterations permitted:
        //
-       boost::uintmax_t max_iter = policies::get_max_root_iterations<Policy>();
+       std::uintmax_t max_iter = policies::get_max_root_iterations<Policy>();
        typedef typename Policy::discrete_quantile_type discrete_type;
        return detail::inverse_discrete_quantile(
           dist,