services.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Boost.Geometry
  2. // Copyright (c) 2021, Oracle and/or its affiliates.
  3. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  4. // Licensed under the Boost Software License version 1.0.
  5. // http://www.boost.org/users/license.html
  6. #ifndef BOOST_GEOMETRY_STRATEGIES_DISCRETE_DISTANCE_SERVICES_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_DISCRETE_DISTANCE_SERVICES_HPP
  8. #include <boost/geometry/core/cs.hpp>
  9. #include <boost/geometry/core/static_assert.hpp>
  10. namespace boost { namespace geometry
  11. {
  12. namespace strategies { namespace discrete_distance
  13. {
  14. namespace services
  15. {
  16. template
  17. <
  18. typename Geometry1,
  19. typename Geometry2,
  20. typename CSTag1 = typename geometry::cs_tag<Geometry1>::type,
  21. typename CSTag2 = typename geometry::cs_tag<Geometry2>::type
  22. >
  23. struct default_strategy
  24. {
  25. BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
  26. "Not implemented for these Geometries' coordinate systems.",
  27. Geometry1, Geometry2, CSTag1, CSTag2);
  28. };
  29. template <typename Strategy>
  30. struct strategy_converter
  31. {
  32. BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
  33. "Not implemented for this Strategy.",
  34. Strategy);
  35. };
  36. } // namespace services
  37. }} // namespace strategies::discrete_distance
  38. }} // namespace boost::geometry
  39. #endif // BOOST_GEOMETRY_STRATEGIES_DISCRETE_DISTANCE_SERVICES_HPP