From 4016f8e7cc7f992155caf97a4bb21cd81552a7b6 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Wed, 1 Feb 2017 11:02:01 -0500 Subject: [PATCH] Define CORE_NO_CONSTEXPR_ADDRESSOF if NO_CXX11_CONSTEXPR is defined The test case could check for BOOST_NO_CXX11_CONSTEXPR but it makes sense for BOOST_CORE_NO_CONSTEXPR_ADDRESSOF to be defined in this case also. --- include/boost/core/addressof.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/core/addressof.hpp b/include/boost/core/addressof.hpp index 6f7638d..b40afed 100644 --- a/include/boost/core/addressof.hpp +++ b/include/boost/core/addressof.hpp @@ -27,6 +27,10 @@ http://www.boost.org/LICENSE_1_0.txt) #endif #if defined(BOOST_CORE_HAS_BUILTIN_ADDRESSOF) +#if defined(BOOST_NO_CXX11_CONSTEXPR) +#define BOOST_CORE_NO_CONSTEXPR_ADDRESSOF +#endif + namespace boost { template