Copy hash library from 1.34.1 over trunk.

For the first merge with the release branch, I only want to include some of the
changes I've been working on (fixes and some trivial changes), so I'm starting
again from 1.34.1.


[SVN r38873]
This commit is contained in:
Daniel James
2007-08-24 00:42:19 +00:00
parent 567290d703
commit aa7a824c6d
61 changed files with 432 additions and 748 deletions
+4 -5
View File
@@ -1,7 +1,7 @@
// Copyright 2006-2007 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Copyright Daniel James 2006. Use, modification, and distribution are
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#define HASH_NAMESPACE boost
#include <boost/functional/hash.hpp>
@@ -17,7 +17,6 @@ int f(std::size_t hash1, int* x1) {
std::vector<std::size_t> x;
x.push_back(*x1);
HASH_NAMESPACE::hash<std::vector<std::size_t> > vector_hasher;
BOOST_TEST(vector_hasher(x) == HASH_NAMESPACE::hash_value(x));
return boost::report_errors();
return vector_hasher(x) != HASH_NAMESPACE::hash_value(x);
}