• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2 // Unit Test
3 
4 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
5 
6 // Use, modification and distribution is subject to the Boost Software License,
7 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 
10 
11 #include <geometry_test_common.hpp>
12 #include <boost/geometry/geometries/geometries.hpp>
13 #include <boost/geometry/geometries/adapted/boost_tuple.hpp>
14 #include <boost/geometry/algorithms/distance.hpp>
15 #include <boost/geometry/strategies/strategies.hpp>
16 
17 #include <iostream>
18 
19 
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)20 BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)
21 
22 
23 template <typename P>
24 void test_all()
25 {
26     P p1, p2;
27     bg::distance(p1, p2);
28 }
29 
test_main(int,char * [])30 int test_main(int, char* [])
31 {
32     test_all<boost::tuple<float> >();
33     test_all<boost::tuple<int, int> >();
34     test_all<boost::tuple<double, double, double> >();
35     test_all<boost::tuple<float, float, float, float> >();
36     test_all<boost::tuple<float, float, float, float, float> >();
37 
38     return 0;
39 }
40