2 // Copyright 2019 Mateusz Loskot <mateusz at loskot dot net>
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
8 #include <boost/gil/color_base.hpp>
9 #include <boost/gil/concepts.hpp>
10 #include <boost/gil/device_n.hpp>
11 #include <boost/gil/gray.hpp>
12 #include <boost/gil/rgb.hpp>
13 #include <boost/gil/rgba.hpp>
14 #include <boost/gil/cmyk.hpp>
15 #include <boost/gil/typedefs.hpp>
17 #include <boost/mp11.hpp>
19 #include <type_traits>
21 namespace gil = boost::gil;
22 using namespace boost::mp11;
25 using test_self_compatible = gil::color_spaces_are_compatible<T, T>;
29 using color_spaces = mp_list
41 static_assert(std::is_same
43 mp_all_of<color_spaces, test_self_compatible>,
46 "color_spaces_are_compatible should yield true for the same types");