From 1a126042f840a9799c8000c304d20ce38cb28386 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 15 Jul 2012 07:43:40 +0000 Subject: [PATCH] Hash: Fix smart pointer macro check. [SVN r79527] --- hash/test/hash_std_smart_ptr_test.cpp | 2 +- include/boost/functional/hash/extensions.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hash/test/hash_std_smart_ptr_test.cpp b/hash/test/hash_std_smart_ptr_test.cpp index 83e705b..7452585 100644 --- a/hash/test/hash_std_smart_ptr_test.cpp +++ b/hash/test/hash_std_smart_ptr_test.cpp @@ -14,7 +14,7 @@ #include #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 #endif diff --git a/include/boost/functional/hash/extensions.hpp b/include/boost/functional/hash/extensions.hpp index dc59b45..4358736 100644 --- a/include/boost/functional/hash/extensions.hpp +++ b/include/boost/functional/hash/extensions.hpp @@ -179,7 +179,7 @@ namespace boost #endif -#if !defined(BOOST_NO_CXX11_HDR_MEMORY) +#if !defined(BOOST_NO_CXX11_SMART_PTR) template inline std::size_t hash_value(std::shared_ptr const& x) { return boost::hash_value(x.get());