summaryrefslogtreecommitdiff
path: root/include/o3tl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 08:32:22 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-05 07:23:19 +0000
commitdeb5bae09185ea442f8788664ac5cff0d59a7351 (patch)
tree81e9882cdef485ce9922ae7f64b8c12b45686b8e /include/o3tl
parent1a6044dd8a69876b6eb6d20d24b2ac12be01fc5d (diff)
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.hxx10
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() );
}