default_comparable_distance_result.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2014 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2014 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
  5. // This file was modified by Oracle on 2014.
  6. // Modifications copyright (c) 2014, Oracle and/or its affiliates.
  7. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  8. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
  9. // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
  10. // Use, modification and distribution is subject to the Boost Software License,
  11. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  12. // http://www.boost.org/LICENSE_1_0.txt)
  13. #ifndef BOOST_GEOMETRY_STRATEGIES_DEFAULT_COMPARABLE_DISTANCE_RESULT_HPP
  14. #define BOOST_GEOMETRY_STRATEGIES_DEFAULT_COMPARABLE_DISTANCE_RESULT_HPP
  15. #include <boost/geometry/strategies/comparable_distance_result.hpp>
  16. namespace boost { namespace geometry
  17. {
  18. /*!
  19. \brief Meta-function defining return type of comparable_distance function
  20. \ingroup distance
  21. \note The strategy defines the return-type (so this situation is different
  22. from length, where distance is sqr/sqrt, but length always squared)
  23. */
  24. template <typename Geometry1, typename Geometry2 = Geometry1>
  25. struct default_comparable_distance_result
  26. : comparable_distance_result<Geometry1, Geometry2, void>
  27. {};
  28. }} // namespace boost::geometry
  29. #endif // BOOST_GEOMETRY_STRATEGIES_DEFAULT_COMPARABLE_DISTANCE_RESULT_HPP