rescale_policy_tags.hpp 991 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Boost.Geometry
  2. // Copyright (c) 2019-2019 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Use, modification and distribution is subject to the Boost Software License,
  4. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_GEOMETRY_POLICIES_ROBUSTNESS_RESCALE_POLICY_TYPE_HPP
  7. #define BOOST_GEOMETRY_POLICIES_ROBUSTNESS_RESCALE_POLICY_TYPE_HPP
  8. #include <boost/geometry/policies/robustness/no_rescale_policy.hpp>
  9. namespace boost { namespace geometry
  10. {
  11. #ifndef DOXYGEN_NO_DETAIL
  12. namespace detail
  13. {
  14. struct no_rescale_policy_tag {};
  15. struct rescale_policy_tag {};
  16. template <typename RobustPolicy>
  17. struct rescale_policy_type
  18. {
  19. typedef rescale_policy_tag type;
  20. };
  21. // Specialization
  22. template <>
  23. struct rescale_policy_type<no_rescale_policy>
  24. {
  25. typedef no_rescale_policy_tag type;
  26. };
  27. } // namespace detail
  28. #endif
  29. }} // namespace boost::geometry
  30. #endif // BOOST_GEOMETRY_POLICIES_ROBUSTNESS_RESCALE_POLICY_TYPE_HPP