From 7aadf5c6c7d626789792c5e93a2aa9dbb3915e76 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 29 Jul 2017 17:38:10 +0300 Subject: [PATCH] Use BOOST_MAY_ALIAS from Boost.Config. This will add support for more compilers implementing the attribute. --- include/boost/move/core.hpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/include/boost/move/core.hpp b/include/boost/move/core.hpp index 1dd8a8c..db24ccf 100644 --- a/include/boost/move/core.hpp +++ b/include/boost/move/core.hpp @@ -64,15 +64,7 @@ #endif //Move emulation rv breaks standard aliasing rules so add workarounds for some compilers - #if defined(__GNUC__) && (__GNUC__ >= 4) && \ - (\ - defined(BOOST_GCC) || \ - (defined(BOOST_INTEL) && (BOOST_INTEL_CXX_VERSION >= 1300)) \ - ) - #define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS __attribute__((__may_alias__)) - #else - #define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS - #endif + #define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS BOOST_MAY_ALIAS namespace boost {