Use BOOST_WORKAROUND in boost/functional/hash/hash.hpp

[SVN r32589]
This commit is contained in:
Daniel James
2006-02-05 16:31:45 +00:00
parent ebf1937e6d
commit 9521ea7ea3

View File

@@ -29,7 +29,7 @@
namespace boost namespace boost
{ {
#if defined(__BORLANDC__) #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
// Borland complains about an ambiguous function overload // Borland complains about an ambiguous function overload
// when compiling boost::hash<bool>. // when compiling boost::hash<bool>.
std::size_t hash_value(bool); std::size_t hash_value(bool);
@@ -64,7 +64,7 @@ namespace boost
// Implementation // Implementation
#if defined(__BORLANDC__) #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
inline std::size_t hash_value(bool v) inline std::size_t hash_value(bool v)
{ {
return static_cast<std::size_t>(v); return static_cast<std::size_t>(v);
@@ -138,7 +138,7 @@ namespace boost
template <class Array> template <class Array>
struct inner struct inner
{ {
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300 #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
static std::size_t call(Array& v) static std::size_t call(Array& v)
#else #else
static std::size_t call(Array const& v) static std::size_t call(Array const& v)
@@ -159,7 +159,7 @@ namespace boost
#endif // BOOST_NO_FUNCTION_TEMPLATE_ORDERING #endif // BOOST_NO_FUNCTION_TEMPLATE_ORDERING
} }
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300 #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
template <class T> template <class T>
inline void hash_combine(std::size_t& seed, T& v) inline void hash_combine(std::size_t& seed, T& v)
#else #else
@@ -193,7 +193,7 @@ namespace boost
} }
} }
#if defined(__BORLANDC__) #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
template <class T> template <class T>
inline std::size_t hash_range(T* first, T* last) inline std::size_t hash_range(T* first, T* last)
{ {
@@ -300,7 +300,7 @@ namespace boost
return hash_detail::call_hash<T>::call(val); return hash_detail::call_hash<T>::call(val);
} }
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300 #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
std::size_t operator()(T& val) const std::size_t operator()(T& val) const
{ {
return hash_detail::call_hash<T>::call(val); return hash_detail::call_hash<T>::call(val);