Merge iostreams, hash.

Including disallowing implicit casts to `hash_value`.


[SVN r63812]
This commit is contained in:
Daniel James
2010-07-10 14:20:45 +00:00
parent 55fac118e9
commit afc4d6664f
5 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// Copyright 2010 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)
#include <boost/functional/hash.hpp>
#include <boost/shared_ptr.hpp>
// This should obviously pass if shared_ptr ever supports Boost.Hash.
int main() {
boost::hash<boost::shared_ptr<int> > hash;
boost::shared_ptr<int> x(new int(10));
hash(x);
}