forked from boostorg/container_hash
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user