/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. // Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
  4. // Use, modification and distribution is subject to the Boost Software License,
  5. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <geometry_test_common.hpp>
  8. #include <boost/geometry/geometries/geometries.hpp>
  9. #include <boost/geometry/geometries/adapted/boost_tuple.hpp>
  10. #include <boost/geometry/algorithms/distance.hpp>
  11. #include <boost/geometry/strategies/strategies.hpp>
  12. #include <iostream>
  13. BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)
  14. template <typename P>
  15. void test_all()
  16. {
  17. P p1, p2;
  18. bg::distance(p1, p2);
  19. }
  20. int test_main(int, char* [])
  21. {
  22. test_all<boost::tuple<float> >();
  23. test_all<boost::tuple<int, int> >();
  24. test_all<boost::tuple<double, double, double> >();
  25. test_all<boost::tuple<float, float, float, float> >();
  26. test_all<boost::tuple<float, float, float, float, float> >();
  27. return 0;
  28. }