Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79527 - in trunk: boost/functional/hash libs/functional/hash/test
From: dnljms_at_[hidden]
Date: 2012-07-15 03:43:40


Author: danieljames
Date: 2012-07-15 03:43:40 EDT (Sun, 15 Jul 2012)
New Revision: 79527
URL: http://svn.boost.org/trac/boost/changeset/79527

Log:
Hash: Fix smart pointer macro check.
Text files modified:
   trunk/boost/functional/hash/extensions.hpp | 2 +-
   trunk/libs/functional/hash/test/hash_std_smart_ptr_test.cpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/functional/hash/extensions.hpp
==============================================================================
--- trunk/boost/functional/hash/extensions.hpp (original)
+++ trunk/boost/functional/hash/extensions.hpp 2012-07-15 03:43:40 EDT (Sun, 15 Jul 2012)
@@ -179,7 +179,7 @@
 
 #endif
 
-#if !defined(BOOST_NO_CXX11_HDR_MEMORY)
+#if !defined(BOOST_NO_CXX11_SMART_PTR)
     template <typename T>
     inline std::size_t hash_value(std::shared_ptr<T> const& x) {
         return boost::hash_value(x.get());

Modified: trunk/libs/functional/hash/test/hash_std_smart_ptr_test.cpp
==============================================================================
--- trunk/libs/functional/hash/test/hash_std_smart_ptr_test.cpp (original)
+++ trunk/libs/functional/hash/test/hash_std_smart_ptr_test.cpp 2012-07-15 03:43:40 EDT (Sun, 15 Jul 2012)
@@ -14,7 +14,7 @@
 #include <boost/detail/lightweight_test.hpp>
 #include "./compile_time.hpp"
 
-#if defined(TEST_EXTENSIONS) && !defined(BOOST_NO_CXX11_HDR_TUPLE)
+#if defined(TEST_EXTENSIONS) && !defined(BOOST_NO_CXX11_SMART_PTR)
 #define TEST_SMART_PTRS
 #include <memory>
 #endif


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