|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50514 - trunk/boost/functional/hash
From: daniel_james_at_[hidden]
Date: 2009-01-08 08:37:34
Author: danieljames
Date: 2009-01-08 08:37:33 EST (Thu, 08 Jan 2009)
New Revision: 50514
URL: http://svn.boost.org/trac/boost/changeset/50514
Log:
Rename parameter to avoid Visual C++ warning about clash with boost::array.
Fixes #2643
Text files modified:
trunk/boost/functional/hash/hash.hpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Modified: trunk/boost/functional/hash/hash.hpp
==============================================================================
--- trunk/boost/functional/hash/hash.hpp (original)
+++ trunk/boost/functional/hash/hash.hpp 2009-01-08 08:37:33 EST (Thu, 08 Jan 2009)
@@ -58,10 +58,10 @@
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
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 >
- std::size_t hash_value(T (&array)[N]);
+ std::size_t hash_value(T (&x)[N]);
#endif
std::size_t hash_value(float v);
@@ -281,15 +281,15 @@
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
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 >
- 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
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