2010-07-06 23:32:37 +00:00
|
|
|
#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);
|
|
|
|
|
}
|