// // Copyright 2018 Mateusz Loskot // // 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 // #ifndef BOOST_GIL_USE_CONCEPT_CHECK #error Compile with BOOST_GIL_USE_CONCEPT_CHECK defined #endif #include #include #include namespace gil = boost::gil; template void test_members() { static_assert(Point::num_dimensions == 2U, "point is not 2D"); using value_t = typename Point::value_type; using coord_t = typename Point::template axis<0>::coord_t; static_assert(std::is_same::value, "point and axis type mismatch"); } int main() { boost::function_requires>>(); boost::function_requires>(); boost::function_requires>>(); boost::function_requires>(); test_members>(); test_members(); // NOTE: point2 is deprecated, available for backward compatibility boost::function_requires>>(); boost::function_requires>>(); test_members>(); return 0; }