On compilers without ADL, qualify the call to swap.

[SVN r2895]
This commit is contained in:
Daniel James
2006-03-20 20:00:55 +00:00
parent c9e2182aa9
commit f43b6bb5d8

View File

@@ -66,8 +66,12 @@ namespace boost {
template <class T> template <class T>
inline void hash_swap(T& x, T& y) inline void hash_swap(T& x, T& y)
{ {
#if defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
std::swap(x,y);
#else
using namespace std; using namespace std;
swap(x, y); swap(x, y);
#endif
} }
inline std::size_t float_to_size_t(float f) inline std::size_t float_to_size_t(float f)