Imported Upstream version 1.71.0
[platform/upstream/boost.git] / libs / gil / test / pixel / pixel_reference_is_mutable.cpp
1 //
2 // Copyright 2019 Mateusz Loskot <mateusz at loskot dot net>
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/concepts/pixel.hpp>
9 //#include <boost/gil/metafunctions.hpp>
10 //#include <boost/gil/pixel.hpp>
11 //#include <boost/gil/typedefs.hpp>
12 #include <boost/gil.hpp>
13 #include <boost/mp11.hpp>
14 #include <boost/mp11/mpl.hpp>
15
16 #include "test_fixture.hpp"
17
18 namespace gil = boost::gil;
19 using namespace boost::mp11;
20
21 int main()
22 {
23     static_assert(mp_all_of
24         <
25             gil::test::fixture::pixel_typedefs,
26             gil::pixel_reference_is_mutable
27         >::value,
28         "pixel_reference_is_mutable should yield true for all core pixel typedefs");
29
30     static_assert(!mp_all_of
31         <
32             mp_transform
33             <
34                 gil::test::fixture::nested_type,
35                 gil::test::fixture::representative_pixel_types
36             >,
37             gil::pixel_reference_is_mutable
38         >::value,
39         "pixel_reference_is_mutable should yield true for some representative core pixel types");
40 }