mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-13 12:32:09 +00:00
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
// Boost.Geometry (aka GGL, Generic Geometry Library) Point concept unit tests
|
|
//
|
|
// Copyright Bruno Lalande 2008, 2009
|
|
// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands
|
|
// Use, modification and distribution is subject to 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 GEOMETRY_TEST_POINT_CONCEPT_FUNCTION_REQUIRING_A_POINT_HPP
|
|
#define GEOMETRY_TEST_POINT_CONCEPT_FUNCTION_REQUIRING_A_POINT_HPP
|
|
|
|
#include <boost/concept/requires.hpp>
|
|
|
|
#include <boost/geometry/geometries/concepts/point_concept.hpp>
|
|
|
|
namespace test
|
|
{
|
|
template <typename P, typename C>
|
|
|
|
inline BOOST_CONCEPT_REQUIRES(
|
|
((boost::geometry::concept::Point<P>))
|
|
((boost::geometry::concept::ConstPoint<C>)),
|
|
(void))
|
|
function_requiring_a_point(P& p1, const C& p2)
|
|
{
|
|
boost::geometry::set<0>(p1, boost::geometry::get<0>(p2));
|
|
}
|
|
}
|
|
|
|
#endif // GEOMETRY_TEST_POINT_CONCEPT_FUNCTION_REQUIRING_A_POINT_HPP
|