|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75756 - in branches/release: . boost boost/smart_ptr libs libs/smart_ptr/test
From: pdimov_at_[hidden]
Date: 2011-11-30 13:01:03
Author: pdimov
Date: 2011-11-30 13:01:02 EST (Wed, 30 Nov 2011)
New Revision: 75756
URL: http://svn.boost.org/trac/boost/changeset/75756
Log:
Merge [75392] to release. Fixes #6087.
Added:
branches/release/libs/smart_ptr/test/ip_hash_test.cpp
- copied unchanged from r75392, /trunk/libs/smart_ptr/test/ip_hash_test.cpp
Properties modified:
branches/release/ (props changed)
branches/release/boost/ (props changed)
branches/release/libs/ (props changed)
Text files modified:
branches/release/boost/smart_ptr/intrusive_ptr.hpp | 9 +++++++++
branches/release/libs/smart_ptr/test/Jamfile.v2 | 1 +
2 files changed, 10 insertions(+), 0 deletions(-)
Modified: branches/release/boost/smart_ptr/intrusive_ptr.hpp
==============================================================================
--- branches/release/boost/smart_ptr/intrusive_ptr.hpp (original)
+++ branches/release/boost/smart_ptr/intrusive_ptr.hpp 2011-11-30 13:01:02 EST (Wed, 30 Nov 2011)
@@ -285,6 +285,15 @@
#endif // !defined(BOOST_NO_IOSTREAM)
+// hash_value
+
+template< class T > struct hash;
+
+template< class T > std::size_t hash_value( boost::intrusive_ptr<T> const & p )
+{
+ return boost::hash< T* >()( p.get() );
+}
+
} // namespace boost
#endif // #ifndef BOOST_SMART_PTR_INTRUSIVE_PTR_HPP_INCLUDED
Modified: branches/release/libs/smart_ptr/test/Jamfile.v2
==============================================================================
--- branches/release/libs/smart_ptr/test/Jamfile.v2 (original)
+++ branches/release/libs/smart_ptr/test/Jamfile.v2 2011-11-30 13:01:02 EST (Wed, 30 Nov 2011)
@@ -66,5 +66,6 @@
[ compile make_shared_fp_test.cpp ]
[ run sp_hash_test.cpp ]
[ run get_deleter_array_test.cpp ]
+ [ run ip_hash_test.cpp ]
;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk