mirror of
https://github.com/boostorg/container_hash.git
synced 2026-02-04 22:25:11 +01:00
Try preventing static casts when calling hash_value.
[SVN r63716]
This commit is contained in:
11
test/shared_ptr_fail_test.cpp
Normal file
11
test/shared_ptr_fail_test.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user