mirror of
https://github.com/boostorg/move.git
synced 2025-08-02 21:54:26 +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
|
#endif
|
||||||
|
|
||||||
//Move emulation rv breaks standard aliasing rules so add workarounds for some compilers
|
//Move emulation rv breaks standard aliasing rules so add workarounds for some compilers
|
||||||
#if defined(__GNUC__) && (__GNUC__ >= 4) && \
|
#define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS BOOST_MAY_ALIAS
|
||||||
(\
|
|
||||||
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
|
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user