diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-05 20:54:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-05 22:21:49 +0000 |
commit | 4d6a509efe6bd56613b5554556d3a4f7f4cfd0d5 (patch) | |
tree | 22fc10679131c72993615d0fa634460d14a15ec8 /include/oox | |
parent | 076b098ddf80fc78773d3ed97b7fd50dbcb4ebb6 (diff) |
convert all remaining BOOST_STATIC_ASSERT to static_assert
and we can include a few less headers
Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/helper/helper.hxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/oox/helper/helper.hxx b/include/oox/helper/helper.hxx index 1f5942b80cb1..b19337df8873 100644 --- a/include/oox/helper/helper.hxx +++ b/include/oox/helper/helper.hxx @@ -22,7 +22,6 @@ #include <algorithm> #include <limits> -#include <boost/static_assert.hpp> #include <sal/macros.h> #include <osl/endian.h> #include <rtl/math.hxx> @@ -113,8 +112,7 @@ inline ReturnType getLimitedValue( Type nValue, Type nMin, Type nMax ) template< typename ReturnType, typename Type > inline ReturnType getIntervalValue( Type nValue, Type nBegin, Type nEnd ) { -// this BOOST_STATIC_ASSERT fails with suncc -// BOOST_STATIC_ASSERT( ::std::numeric_limits< Type >::is_integer ); + static_assert(::std::numeric_limits< Type >::is_integer, "is integer"); Type nInterval = nEnd - nBegin; Type nCount = (nValue < nBegin) ? -((nBegin - nValue - 1) / nInterval + 1) : ((nValue - nBegin) / nInterval); return static_cast< ReturnType >( nValue - nCount * nInterval ); |