Hash: Fix smart pointer macro check.

[SVN r79527]
This commit is contained in:
Daniel James
2012-07-15 07:43:40 +00:00
parent 84d32ce136
commit 1a126042f8
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include "./compile_time.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 #define TEST_SMART_PTRS
#include <memory> #include <memory>
#endif #endif

View File

@@ -179,7 +179,7 @@ namespace boost
#endif #endif
#if !defined(BOOST_NO_CXX11_HDR_MEMORY) #if !defined(BOOST_NO_CXX11_SMART_PTR)
template <typename T> template <typename T>
inline std::size_t hash_value(std::shared_ptr<T> const& x) { inline std::size_t hash_value(std::shared_ptr<T> const& x) {
return boost::hash_value(x.get()); return boost::hash_value(x.get());