diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 08:32:22 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-05 07:23:19 +0000 |
commit | deb5bae09185ea442f8788664ac5cff0d59a7351 (patch) | |
tree | 81e9882cdef485ce9922ae7f64b8c12b45686b8e /include/o3tl | |
parent | Do not implicitly run this for now; it breaks the build (diff) | |
download | core-deb5bae09185ea442f8788664ac5cff0d59a7351.tar.gz core-deb5bae09185ea442f8788664ac5cff0d59a7351.zip |
BOOST_ASSERT->assert
Change-Id: Ifbb80c90f8530ebf4660493447c2c076587bebd6
Reviewed-on: https://gerrit.libreoffice.org/19795
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/o3tl')
-rw-r--r-- | include/o3tl/range.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/o3tl/range.hxx b/include/o3tl/range.hxx index 1a28784a41bd..9abfb25239fb 100644 --- a/include/o3tl/range.hxx +++ b/include/o3tl/range.hxx @@ -22,7 +22,7 @@ #include <cstring> -#include <boost/assert.hpp> +#include <cassert> @@ -106,8 +106,8 @@ range<T>::range( T i_inclusiveLowerBorder, : nBegin(i_inclusiveLowerBorder), nEnd(i_exclusiveUpperBorder) { - BOOST_ASSERT( nBegin <= nEnd - && "Invalid parameters for range<> constructor."); + assert( nBegin <= nEnd + && "Invalid parameters for range<> constructor."); } template <class T> @@ -133,8 +133,8 @@ template <class T> inline std::size_t range<T>::size() const { - BOOST_ASSERT( nBegin <= nEnd - && "Invalid range limits in range<>::size()."); + assert( nBegin <= nEnd + && "Invalid range limits in range<>::size()."); return static_cast<std::size_t>( end() - begin() ); } |