mirror of
https://github.com/boostorg/functional.git
synced 2025-08-03 22:44:31 +02:00
Hash: Fix smart pointer macro check.
[SVN r79527]
This commit is contained in:
@@ -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
|
||||||
|
@@ -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());
|
||||||
|
Reference in New Issue
Block a user