services.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_CENTROID_SERVICES_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_CENTROID_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 centroid
  13. {
  14. namespace services
  15. {
  16. template
  17. <
  18. typename Geometry,
  19. typename CSTag = typename geometry::cs_tag<Geometry>::type
  20. >
  21. struct default_strategy
  22. {
  23. BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
  24. "Not implemented for this Geometry's coordinate systems.",
  25. Geometry, CSTag);
  26. };
  27. template <typename Strategy>
  28. struct strategy_converter
  29. {
  30. BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
  31. "Not implemented for this Strategy.",
  32. Strategy);
  33. };
  34. } // namespace services
  35. }} // namespace strategies::centroid
  36. }} // namespace boost::geometry
  37. #endif // BOOST_GEOMETRY_STRATEGIES_CENTROID_SERVICES_HPP