mirror of
https://github.com/boostorg/functional.git
synced 2025-08-01 21:44:28 +02:00
Rename parameter to avoid Visual C++ warning about clash with boost::array.
Fixes #2643 [SVN r50514]
This commit is contained in:
@@ -58,10 +58,10 @@ namespace boost
|
|||||||
|
|
||||||
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
||||||
template< class T, unsigned N >
|
template< class T, unsigned N >
|
||||||
std::size_t hash_value(const T (&array)[N]);
|
std::size_t hash_value(const T (&x)[N]);
|
||||||
|
|
||||||
template< class T, unsigned N >
|
template< class T, unsigned N >
|
||||||
std::size_t hash_value(T (&array)[N]);
|
std::size_t hash_value(T (&x)[N]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::size_t hash_value(float v);
|
std::size_t hash_value(float v);
|
||||||
@@ -281,15 +281,15 @@ namespace boost
|
|||||||
|
|
||||||
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
||||||
template< class T, unsigned N >
|
template< class T, unsigned N >
|
||||||
inline std::size_t hash_value(const T (&array)[N])
|
inline std::size_t hash_value(const T (&x)[N])
|
||||||
{
|
{
|
||||||
return hash_range(array, array + N);
|
return hash_range(x, x + N);
|
||||||
}
|
}
|
||||||
|
|
||||||
template< class T, unsigned N >
|
template< class T, unsigned N >
|
||||||
inline std::size_t hash_value(T (&array)[N])
|
inline std::size_t hash_value(T (&x)[N])
|
||||||
{
|
{
|
||||||
return hash_range(array, array + N);
|
return hash_range(x, x + N);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user