Imported Upstream version 1.71.0
[platform/upstream/boost.git] / libs / gil / toolbox / test / is_bit_aligned.cpp
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
11 #include <boost/test/unit_test.hpp>
12 #include <boost/type_traits/is_same.hpp>
13
14 using namespace boost;
15 using namespace gil;
16
17 BOOST_AUTO_TEST_SUITE( toolbox_tests )
18
19 BOOST_AUTO_TEST_CASE( is_bit_aligned_test )
20 {
21     using image_t = bit_aligned_image1_type< 4, gray_layout_t>::type;
22     static_assert(is_bit_aligned<image_t::view_t::value_type>::value, "");
23 }
24
25 BOOST_AUTO_TEST_SUITE_END()