services.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_IS_CONVEX_SERVICES_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SERVICES_HPP
  8. #include <boost/geometry/core/cs.hpp>
  9. #include <boost/mpl/assert.hpp>
  10. namespace boost { namespace geometry
  11. {
  12. namespace strategies { namespace is_convex {
  13. namespace services
  14. {
  15. template
  16. <
  17. typename Geometry,
  18. typename CSTag = geometry::cs_tag_t<Geometry>
  19. >
  20. struct default_strategy
  21. {
  22. BOOST_MPL_ASSERT_MSG
  23. (
  24. false, NOT_IMPLEMENTED_FOR_THIS_COORDINATE_SYSTEM
  25. , (types<Geometry, CSTag>)
  26. );
  27. };
  28. template <typename Strategy>
  29. struct strategy_converter
  30. {
  31. BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
  32. "Not implemented for this Strategy.",
  33. Strategy);
  34. };
  35. } // namespace services
  36. }} // namespace strategies::is_convex
  37. }} // namespace boost::geometry
  38. #endif // BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SERVICES_HPP