mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
Replace boost::addressof
with std::addressof
For some reason, gcc-5 and 6 don't like Boost's impl here but the std one seems to work
This commit is contained in:
@ -2,7 +2,8 @@
|
||||
#define BOOST_UNORDERED_DETAIL_OPT_STORAGE_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/core/addressof.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace boost {
|
||||
namespace unordered {
|
||||
@ -14,8 +15,8 @@ namespace boost {
|
||||
opt_storage() {}
|
||||
~opt_storage() {}
|
||||
|
||||
T* address() noexcept { return boost::addressof(t_); }
|
||||
T const* address() const noexcept { return boost::addressof(t_); }
|
||||
T* address() noexcept { return std::addressof(t_); }
|
||||
T const* address() const noexcept { return std::addressof(t_); }
|
||||
};
|
||||
} // namespace detail
|
||||
} // namespace unordered
|
||||
|
Reference in New Issue
Block a user