Fix hash support for shared_ptr<T[]>, <T[N]>

This commit is contained in:
Peter Dimov
2015-12-15 19:13:20 +02:00
parent 4db7219c32
commit 46f00ea993
4 changed files with 72 additions and 1 deletions

View File

@@ -1065,7 +1065,7 @@ template< class T > struct hash;
template< class T > std::size_t hash_value( boost::shared_ptr<T> const & p ) BOOST_NOEXCEPT
{
return boost::hash< T* >()( p.get() );
return boost::hash< typename boost::shared_ptr<T>::element_type* >()( p.get() );
}
} // namespace boost