2
0
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:
Matt Borland
2021-03-14 12:22:26 +03:00
parent 03b30efdd3
commit d59c734c5e
109 changed files with 390 additions and 367 deletions

View File

@@ -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

View File

@@ -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;
}
}