mirror of
https://github.com/boostorg/functional.git
synced 2025-08-03 06:24:34 +02:00
Functional: Remove obsolete GCC version checks.
[SVN r86112]
This commit is contained in:
@@ -34,13 +34,6 @@
|
|||||||
// Loop executes infinitely.
|
// Loop executes infinitely.
|
||||||
#endif
|
#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 boost
|
||||||
{
|
{
|
||||||
namespace hash_detail
|
namespace hash_detail
|
||||||
@@ -135,7 +128,7 @@ namespace boost
|
|||||||
|
|
||||||
template <class Ch, class A>
|
template <class Ch, class A>
|
||||||
std::size_t hash_value(
|
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>
|
template <typename T>
|
||||||
typename boost::hash_detail::float_numbers<T>::type hash_value(T);
|
typename boost::hash_detail::float_numbers<T>::type hash_value(T);
|
||||||
@@ -319,7 +312,7 @@ namespace boost
|
|||||||
|
|
||||||
template <class Ch, class A>
|
template <class Ch, class A>
|
||||||
inline std::size_t hash_value(
|
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());
|
return hash_range(v.begin(), v.end());
|
||||||
}
|
}
|
||||||
@@ -478,8 +471,6 @@ namespace boost
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef BOOST_HASH_CHAR_TRAITS
|
|
||||||
|
|
||||||
#if defined(BOOST_MSVC)
|
#if defined(BOOST_MSVC)
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user