// // Copyright 2013 Christian Henning // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #include #include #include #include using namespace boost; using namespace gil; BOOST_AUTO_TEST_SUITE( toolbox_tests ) BOOST_AUTO_TEST_CASE( get_pixel_type_test ) { { using image_t = bit_aligned_image3_type<4, 15, 4, rgb_layout_t>::type; static_assert(std::is_same < get_pixel_type::type, image_t::view_t::reference >::value, ""); } { using image_t = rgb8_image_t; static_assert(std::is_same < get_pixel_type::type, image_t::view_t::value_type >::value, ""); } } BOOST_AUTO_TEST_SUITE_END()