mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Remove boost.assert
This commit is contained in:
@@ -273,8 +273,8 @@ T generate_random(unsigned bits_wanted)
|
||||
template <typename N>
|
||||
N gcd_stein(N m, N n)
|
||||
{
|
||||
BOOST_ASSERT(m >= static_cast<N>(0));
|
||||
BOOST_ASSERT(n >= static_cast<N>(0));
|
||||
BOOST_MATH_ASSERT(m >= static_cast<N>(0));
|
||||
BOOST_MATH_ASSERT(n >= static_cast<N>(0));
|
||||
if(m == N(0)) return n;
|
||||
if(n == N(0)) return m;
|
||||
// m > 0 && n > 0
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <boost/multiprecision/cpp_bin_float.hpp>
|
||||
#include <boost/math/statistics/univariate_statistics.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/math/tools/assert.hpp>
|
||||
#include <benchmark/benchmark.h>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
@@ -76,7 +76,7 @@ std::vector<T> generate_random_vector(std::size_t size, std::size_t seed)
|
||||
}
|
||||
else
|
||||
{
|
||||
BOOST_ASSERT_MSG(false, "Could not identify type for random vector generation.");
|
||||
BOOST_MATH_ASSERT_MSG(false, "Could not identify type for random vector generation.");
|
||||
return v;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user