1 // Boost.Geometry (aka GGL, Generic Geometry Library) Point concept unit tests 2 // 3 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. 4 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. 5 // Use, modification and distribution is subject to the Boost Software License, 6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 7 // http://www.boost.org/LICENSE_1_0.txt) 8 9 #ifndef GEOMETRY_TEST_POINT_CONCEPT_FUNCTION_ASSERTING_A_POINT_HPP 10 #define GEOMETRY_TEST_POINT_CONCEPT_FUNCTION_ASSERTING_A_POINT_HPP 11 12 #include <boost/concept/requires.hpp> 13 14 #include <boost/geometry/geometries/concepts/point_concept.hpp> 15 16 namespace bg = boost::geometry; 17 18 namespace test 19 { 20 template <typename P, typename CP> function_asserting_a_point(P & p1,const CP & p2)21 void function_asserting_a_point(P& p1, const CP& p2) 22 { 23 BOOST_CONCEPT_ASSERT((bg::concepts::Point<P>)); 24 BOOST_CONCEPT_ASSERT((bg::concepts::ConstPoint<P>)); 25 26 bg::get<0>(p1) = bg::get<0>(p2); 27 } 28 } 29 30 #endif // GEOMETRY_TEST_POINT_CONCEPT_FUNCTION_ASSERTING_A_POINT_HPP 31