]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/gil/test/extension/toolbox/is_bit_aligned.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / gil / test / extension / toolbox / 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
13 using namespace boost;
14 using namespace gil;
15
16 BOOST_AUTO_TEST_SUITE( toolbox_tests )
17
18 BOOST_AUTO_TEST_CASE( is_bit_aligned_test )
19 {
20 using image_t = bit_aligned_image1_type< 4, gray_layout_t>::type;
21 static_assert(is_bit_aligned<image_t::view_t::value_type>::value, "");
22 }
23
24 BOOST_AUTO_TEST_SUITE_END()