Fixed Trac #9785: Compiler warning with intel icc in boost/move/core.hpp

This commit is contained in:
Ion Gaztañaga
2014-08-01 17:29:59 +02:00
parent 51c9e874a8
commit 388b71d333
2 changed files with 12 additions and 2 deletions
+5 -1
View File
@@ -45,7 +45,11 @@
#include <boost/move/detail/meta_utils.hpp>
//Move emulation rv breaks standard aliasing rules so add workarounds for some compilers
#if defined(__GNUC__) && (__GNUC__ >= 4)
#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