From 80875a19b6e5fb58f65be98ce708db31966175ee Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Sun, 30 Apr 2017 21:56:10 -0400 Subject: [PATCH] Reduce detection conditions for constexpr addressof --- include/boost/core/addressof.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/core/addressof.hpp b/include/boost/core/addressof.hpp index efde98a..b73ea56 100644 --- a/include/boost/core/addressof.hpp +++ b/include/boost/core/addressof.hpp @@ -117,7 +117,6 @@ struct address_of { } /* detail */ #if defined(BOOST_NO_CXX11_SFINAE_EXPR) || \ - defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \ defined(BOOST_NO_CXX11_CONSTEXPR) || \ defined(BOOST_NO_CXX11_DECLTYPE) #define BOOST_CORE_NO_CONSTEXPR_ADDRESSOF @@ -171,7 +170,7 @@ const T (*addressof(const T (&o)[N]) BOOST_NOEXCEPT)[N] namespace detail { template -T&& addressof_declval() BOOST_NOEXCEPT; +T addressof_declval() BOOST_NOEXCEPT; template struct addressof_void {