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/basebmp | |
parent | Related tdf#87356: import data bar [non-]gradient from OOXML (diff) | |
download | core-4d6a509efe6bd56613b5554556d3a4f7f4cfd0d5.tar.gz core-4d6a509efe6bd56613b5554556d3a4f7f4cfd0d5.zip |
convert all remaining BOOST_STATIC_ASSERT to static_assert
and we can include a few less headers
Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
Diffstat (limited to 'include/basebmp')
-rw-r--r-- | include/basebmp/packedpixeliterator.hxx | 9 |
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 ); |