]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/random/sobol.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / random / sobol.hpp
index 2518b37e88c1e2ff2a1b0eb23ad2f236caf9de18..042b3ba3a370824dbb80252a5bd72e6955bdb69b 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <boost/random/detail/sobol_table.hpp>
 #include <boost/random/detail/gray_coded_qrng.hpp>
+#include <boost/assert.hpp>
 
 namespace boost {
 namespace random {
@@ -58,10 +59,10 @@ public:
     for (std::size_t dim = 1; dim < dimension; ++dim)
     {
       const typename SobolTables::value_type poly = SobolTables::polynomial(dim-1);
-      if (poly > std::numeric_limits<value_type>::max()) {
+      if (poly > (std::numeric_limits<value_type>::max)()) {
         boost::throw_exception( std::range_error("sobol: polynomial value outside the given value type range") );
       }
-      const unsigned degree = multiprecision::msb(poly); // integer log2(poly)
+      const unsigned degree = qrng_detail::msb(poly); // integer log2(poly)
 
       // set initial values of m from table
       for (unsigned k = 0; k != degree; ++k)