summaryrefslogtreecommitdiff
path: root/include/basebmp/packedpixeliterator.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/basebmp/packedpixeliterator.hxx')
-rw-r--r--include/basebmp/packedpixeliterator.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/basebmp/packedpixeliterator.hxx b/include/basebmp/packedpixeliterator.hxx
index 664206240b43..a536cec01012 100644
--- a/include/basebmp/packedpixeliterator.hxx
+++ b/include/basebmp/packedpixeliterator.hxx
@@ -25,7 +25,6 @@
#include <basebmp/nonstandarditerator.hxx>
#include <basebmp/accessortraits.hxx>
-#include <boost/static_assert.hpp>
#include <vigra/metaprogramming.hxx>
#include <vigra/diff2d.hxx>
@@ -39,10 +38,10 @@ template< typename value_type,
typename difference_type >
inline value_type get_mask( difference_type d )
{
- BOOST_STATIC_ASSERT(bits_per_pixel > 0);
- BOOST_STATIC_ASSERT(sizeof(value_type)*8 % bits_per_pixel == 0);
- BOOST_STATIC_ASSERT(sizeof(value_type)*8 / bits_per_pixel > 1);
- BOOST_STATIC_ASSERT(vigra::TypeTraits<value_type>::isPOD::asBool);
+ static_assert(bits_per_pixel > 0, "greater than 0");
+ static_assert(sizeof(value_type)*8 % bits_per_pixel == 0, "value_type");
+ static_assert(sizeof(value_type)*8 / bits_per_pixel > 1, "value_type");
+ static_assert(vigra::TypeTraits<value_type>::isPOD::asBool, "isPOD");
const unsigned int nIntraWordPositions( sizeof(value_type)*8 / bits_per_pixel );