Try preventing static casts when calling hash_value.

[SVN r63716]
This commit is contained in:
Daniel James
2010-07-06 23:32:37 +00:00
parent 425de7d1dd
commit 2553a5fbdc
4 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#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);
}