Use BOOST_ASSERT instead of assert.

This commit is contained in:
Andrey Semashev
2020-05-02 18:18:10 +03:00
parent 5ae18d139e
commit 5e2a2722f1

View File

@ -15,9 +15,9 @@
#ifndef BOOST_INTEGER_INTEGER_LOG2_HPP
#define BOOST_INTEGER_INTEGER_LOG2_HPP
#include <assert.h>
#include <boost/limits.hpp>
#include <boost/config.hpp>
#include <boost/assert.hpp>
#if defined(BOOST_BORLANDC)
#include <climits>
#endif
@ -93,7 +93,7 @@ namespace boost {
template <typename T>
int integer_log2(T x) {
assert(x > 0);
BOOST_ASSERT(x > 0);
const int n = detail::max_pow2_less<
detail::width<T> :: value, 4