Imported Upstream version 1.71.0
[platform/upstream/boost.git] / libs / gil / test / image / concepts.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 #ifndef BOOST_GIL_USE_CONCEPT_CHECK
9 #error Compile with BOOST_GIL_USE_CONCEPT_CHECK defined
10 #endif
11 #include <boost/gil.hpp>
12
13 #include <boost/concept_check.hpp>
14
15 #include <array>
16
17 namespace gil = boost::gil;
18 using boost::function_requires;
19
20 int main()
21 {
22     function_requires<gil::ImageConcept<gil::gray8_image_t>>();
23     function_requires<gil::ImageConcept<gil::rgb8_image_t>>();
24
25     return 0;
26 }