Hash: Fix smart pointer macro check.

[SVN r79527]
This commit is contained in:
Daniel James
2012-07-15 07:43:40 +00:00
parent 411ac66581
commit 5ebe3ad87d
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ namespace boost
#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());

View File

@@ -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