is_bit_aligned.cpp 640 B

123456789101112131415161718192021222324
  1. //
  2. // Copyright 2013 Christian Henning
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. #include <boost/gil.hpp>
  9. #include <boost/gil/extension/toolbox/metafunctions/is_bit_aligned.hpp>
  10. #include <boost/test/unit_test.hpp>
  11. using namespace boost;
  12. using namespace gil;
  13. BOOST_AUTO_TEST_SUITE( toolbox_tests )
  14. BOOST_AUTO_TEST_CASE( is_bit_aligned_test )
  15. {
  16. using image_t = bit_aligned_image1_type< 4, gray_layout_t>::type;
  17. static_assert(is_bit_aligned<image_t::view_t::value_type>::value, "");
  18. }
  19. BOOST_AUTO_TEST_SUITE_END()