PageRenderTime 20ms CodeModel.GetById 13ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/libs/geometry/test/geometries/boost_tuple.cpp

http://hadesmem.googlecode.com/
C++ | 39 lines | 22 code | 11 blank | 6 comment | 0 complexity | 61bc6b70b265bc628bd8a6a4287c179b MD5 | raw file
 1// Boost.Geometry (aka GGL, Generic Geometry Library)
 2// Unit Test
 3
 4// Copyright (c) 2008-2011 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
20BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)
21
22
23template <typename P>
24void test_all()
25{
26    P p1, p2;
27    bg::distance(p1, p2);
28}
29
30int 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}