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

This commit is contained in:
Peter Dimov
2016-02-08 20:47:52 +02:00
parent 4db7219c32
commit 46f00ea993
4 changed files with 72 additions and 1 deletions
+1 -1
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