Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86112 - trunk/boost/functional/hash
From: steveire_at_[hidden]
Date: 2013-10-01 04:46:45


Author: skelly
Date: 2013-10-01 04:46:45 EDT (Tue, 01 Oct 2013)
New Revision: 86112
URL: http://svn.boost.org/trac/boost/changeset/86112

Log:
Functional: Remove obsolete GCC version checks.

Text files modified:
   trunk/boost/functional/hash/hash.hpp | 13 ++-----------
   1 files changed, 2 insertions(+), 11 deletions(-)

Modified: trunk/boost/functional/hash/hash.hpp
==============================================================================
--- trunk/boost/functional/hash/hash.hpp Tue Oct 1 04:46:26 2013 (r86111)
+++ trunk/boost/functional/hash/hash.hpp 2013-10-01 04:46:45 EDT (Tue, 01 Oct 2013) (r86112)
@@ -34,13 +34,6 @@
                               // Loop executes infinitely.
 #endif
 
-#if BOOST_WORKAROUND(__GNUC__, < 3) \
- && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
-#define BOOST_HASH_CHAR_TRAITS string_char_traits
-#else
-#define BOOST_HASH_CHAR_TRAITS char_traits
-#endif
-
 namespace boost
 {
     namespace hash_detail
@@ -135,7 +128,7 @@
 
     template <class Ch, class A>
     std::size_t hash_value(
- std::basic_string<Ch, std::BOOST_HASH_CHAR_TRAITS<Ch>, A> const&);
+ std::basic_string<Ch, std::char_traits<Ch>, A> const&);
 
     template <typename T>
     typename boost::hash_detail::float_numbers<T>::type hash_value(T);
@@ -319,7 +312,7 @@
 
     template <class Ch, class A>
     inline std::size_t hash_value(
- std::basic_string<Ch, std::BOOST_HASH_CHAR_TRAITS<Ch>, A> const& v)
+ std::basic_string<Ch, std::char_traits<Ch>, A> const& v)
     {
         return hash_range(v.begin(), v.end());
     }
@@ -478,8 +471,6 @@
 #endif
 }
 
-#undef BOOST_HASH_CHAR_TRAITS
-
 #if defined(BOOST_MSVC)
 #pragma warning(pop)
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk