mirror of
https://github.com/boostorg/move.git
synced 2025-08-02 13:44:28 +02:00
Use BOOST_MAY_ALIAS from Boost.Config.
This will add support for more compilers implementing the attribute.
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user