forked from boostorg/functional
Try preventing static casts when calling hash_value.
[SVN r63716]
This commit is contained in:
1 parent
67cadfe2b3
commit
67c3951e3f
4 files changed
+38
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user