diff options
Diffstat (limited to 'include/oox/helper/helper.hxx')
-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 ); |