forked from boostorg/container_hash
Remove __DMC__ workarounds
This commit is contained in:
@@ -251,17 +251,6 @@ namespace boost
|
|||||||
return hash_value(val);
|
return hash_value(val);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__DMC__, <= 0x848)
|
|
||||||
template <class T, unsigned int n> struct hash<T[n]>
|
|
||||||
: boost::hash_detail::hash_base<T[n]>
|
|
||||||
{
|
|
||||||
std::size_t operator()(const T* val) const
|
|
||||||
{
|
|
||||||
return boost::hash_range(val, val+n);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -205,11 +205,7 @@ namespace boost
|
|||||||
typename boost::enable_if<boost::is_enum<T>, std::size_t>::type
|
typename boost::enable_if<boost::is_enum<T>, std::size_t>::type
|
||||||
hash_value(T);
|
hash_value(T);
|
||||||
|
|
||||||
#if !BOOST_WORKAROUND(__DMC__, <= 0x848)
|
|
||||||
template <class T> std::size_t hash_value(T* const&);
|
template <class T> std::size_t hash_value(T* const&);
|
||||||
#else
|
|
||||||
template <class T> std::size_t hash_value(T*);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
||||||
template< class T, unsigned N >
|
template< class T, unsigned N >
|
||||||
@@ -375,11 +371,7 @@ namespace boost
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Implementation by Alberto Barbati and Dave Harris.
|
// Implementation by Alberto Barbati and Dave Harris.
|
||||||
#if !BOOST_WORKAROUND(__DMC__, <= 0x848)
|
|
||||||
template <class T> std::size_t hash_value(T* const& v)
|
template <class T> std::size_t hash_value(T* const& v)
|
||||||
#else
|
|
||||||
template <class T> std::size_t hash_value(T* v)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
#if defined(__VMS) && __INITIAL_POINTER_SIZE == 64
|
#if defined(__VMS) && __INITIAL_POINTER_SIZE == 64
|
||||||
// for some reason ptrdiff_t on OpenVMS compiler with
|
// for some reason ptrdiff_t on OpenVMS compiler with
|
||||||
|
Reference in New Issue
Block a user