From a0726e8605a84149d4cb199c2f62bd3c9d56370d Mon Sep 17 00:00:00 2001 From: Jean-Romain Date: Tue, 16 Jul 2024 09:50:18 -0400 Subject: [PATCH] Remove old patches --- src/gcc_4_9_patch/boost_compare_patched.hpp | 194 ------------------ .../std_is_trivially_substitutes.hpp | 23 --- 2 files changed, 217 deletions(-) delete mode 100644 src/gcc_4_9_patch/boost_compare_patched.hpp delete mode 100644 src/gcc_4_9_patch/std_is_trivially_substitutes.hpp diff --git a/src/gcc_4_9_patch/boost_compare_patched.hpp b/src/gcc_4_9_patch/boost_compare_patched.hpp deleted file mode 100644 index bece01a..0000000 --- a/src/gcc_4_9_patch/boost_compare_patched.hpp +++ /dev/null @@ -1,194 +0,0 @@ -#ifndef BOOST_GEOMETRY_STRATEGIES_COMPARE_HPP -#define BOOST_GEOMETRY_STRATEGIES_COMPARE_HPP - - -#include -#include -#include - -#include -#include -#include -#include -#include - -#include - - -namespace boost { namespace geometry -{ - - -namespace strategy { namespace compare -{ - - -struct less -{ - template - static inline bool apply(T1 const& l, T2 const& r) - { - return l < r; - } -}; - -struct greater -{ - template - static inline bool apply(T1 const& l, T2 const& r) - { - return l > r; - } -}; - -struct equal_to -{ - template - static inline bool apply(T1 const& , T2 const& ) - { - return false; - } -}; - - -#ifndef DOXYGEN_NO_DETAIL -namespace detail -{ - - -template -< - typename ComparePolicy, - std::size_t Dimension, - std::size_t DimensionCount -> -struct compare_loop -{ - template - static inline bool apply(Point1 const& left, Point2 const& right) - { - typename geometry::coordinate_type::type const& - cleft = geometry::get(left); - typename geometry::coordinate_type::type const& - cright = geometry::get(right); - - if (math::equals(cleft, cright)) - { - return compare_loop - < - ComparePolicy, - Dimension + 1, DimensionCount - >::apply(left, right); - } - else - { - return ComparePolicy::apply(cleft, cright); - } - } -}; - -template -< - typename ComparePolicy, - std::size_t DimensionCount -> -struct compare_loop -{ - template - static inline bool apply(Point1 const& , Point2 const& ) - { - // On coming here, points are equal. - // Return false for less/greater. - return false; - } -}; - -template -< - std::size_t DimensionCount -> -struct compare_loop -{ - template - static inline bool apply(Point1 const& , Point2 const& ) - { - // On coming here, points are equal. - // Return true for equal_to. - return true; - } -}; - -} // namespace detail -#endif // DOXYGEN_NO_DETAIL - - -template -< - typename ComparePolicy, - int Dimension = -1 -> -struct cartesian -{ - template - static inline bool apply(Point1 const& left, Point2 const& right) - { - return compare::detail::compare_loop - < - ComparePolicy, Dimension, Dimension + 1 - >::apply(left, right); - } -}; - -#ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS -template -< - typename ComparePolicy -> -struct cartesian -{ - template - static inline bool apply(Point1 const& left, Point2 const& right) - { - return compare::detail::compare_loop::apply(left, right); - } -}; -#endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS - -namespace services -{ - - -template -< - typename ComparePolicy, - typename Point1, - typename Point2 = Point1, - int Dimension = -1, - typename CSTag1 = typename cs_tag::type, - typename CSTag2 = typename cs_tag::type -> -struct default_strategy -{ - BOOST_GEOMETRY_STATIC_ASSERT_FALSE( - "Not implemented for these types.", - CSTag1, CSTag2); -}; - - -template -struct default_strategy -{ - typedef compare::cartesian type; -}; - - -} // namespace services - - -}} // namespace strategy compare - - -}} // namespace boost::geometry - - -#endif // BOOST_GEOMETRY_STRATEGIES_COMPARE_HPP diff --git a/src/gcc_4_9_patch/std_is_trivially_substitutes.hpp b/src/gcc_4_9_patch/std_is_trivially_substitutes.hpp deleted file mode 100644 index de91096..0000000 --- a/src/gcc_4_9_patch/std_is_trivially_substitutes.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef ISTRIVIALLYPATCH -#define ISTRIVIALLYPATCH - -namespace std -{ - template - class is_trivially_copyable - { - public: - bool operator()() { return value; }; - static constexpr bool value = true; - }; - - template - class is_trivially_constructible - { - public: - bool operator()() { return value; }; - static constexpr bool value = true; - }; -} - -#endif