From 97828834342e6dfa366492b7936a43996c579cf7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 16 Oct 2021 16:20:54 +0300 Subject: [PATCH] Remove BOOST_NO_FUNCTION_TEMPLATE_ORDERING workarounds --- include/boost/container_hash/extensions.hpp | 58 --------------------- 1 file changed, 58 deletions(-) diff --git a/include/boost/container_hash/extensions.hpp b/include/boost/container_hash/extensions.hpp index 0e6d99e..e8a0d82 100644 --- a/include/boost/container_hash/extensions.hpp +++ b/include/boost/container_hash/extensions.hpp @@ -33,10 +33,6 @@ #include -#if defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING) -#include -#endif - namespace boost { template @@ -243,71 +239,17 @@ namespace boost } #endif - // - // call_hash_impl - // - - // On compilers without function template ordering, this deals with arrays. - -#if defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING) - namespace hash_detail - { - template - struct call_hash_impl - { - template - struct inner - { - static std::size_t call(T const& v) - { - using namespace boost; - return hash_value(v); - } - }; - }; - - template <> - struct call_hash_impl - { - template - struct inner - { - static std::size_t call(Array const& v) - { - const int size = sizeof(v) / sizeof(*v); - return boost::hash_range(v, v + size); - } - }; - }; - - template - struct call_hash - : public call_hash_impl::value> - ::BOOST_NESTED_TEMPLATE inner - { - }; - } -#endif // BOOST_NO_FUNCTION_TEMPLATE_ORDERING - // // boost::hash // - template struct hash : boost::hash_detail::hash_base { -#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING) std::size_t operator()(T const& val) const { return hash_value(val); } -#else - std::size_t operator()(T const& val) const - { - return hash_detail::call_hash::call(val); - } -#endif }; #if BOOST_WORKAROUND(__DMC__, <= 0x848)