From 858503b86adf508fea8f683edd78d318a5555f6e Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Thu, 21 Sep 2023 11:06:03 -0700 Subject: [PATCH] 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 --- include/boost/unordered/detail/opt_storage.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/boost/unordered/detail/opt_storage.hpp b/include/boost/unordered/detail/opt_storage.hpp index 73f88fef..e18c2ce8 100644 --- a/include/boost/unordered/detail/opt_storage.hpp +++ b/include/boost/unordered/detail/opt_storage.hpp @@ -2,7 +2,8 @@ #define BOOST_UNORDERED_DETAIL_OPT_STORAGE_HPP #include -#include + +#include 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