From 1f6892c935633a322a8f0464ef34810c9a613d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 12 Oct 2014 10:23:54 +0200 Subject: [PATCH] Fix GCC-4.9 c++14 regression (see https://gcc.gnu.org/PR63437) avoiding parenthesied BOOST_MOVE_RETURN. --- include/boost/move/core.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/move/core.hpp b/include/boost/move/core.hpp index da63812..4728a71 100644 --- a/include/boost/move/core.hpp +++ b/include/boost/move/core.hpp @@ -375,7 +375,7 @@ #if !defined(BOOST_MOVE_MSVC_AUTO_MOVE_RETURN_BUG) || defined(BOOST_MOVE_DOXYGEN_INVOKED) //!This macro is used to achieve portable move return semantics. - //!The C++11 Standard allows implicit move returns when the object to be returned + //!The C++11 Standard allows implicit move returns when the object to be returned //!is designated by a lvalue and: //! - The criteria for elision of a copy operation are met OR //! - The criteria would be met save for the fact that the source object is a function parameter @@ -390,12 +390,12 @@ //!For non-conforming compilers with rvalue references like Visual 2010 & 2012, //!an explicit move is performed if RET_TYPE is not a reference. //! - //! Caution: When using this macro in a non-conforming or C++03 + //! Caution: When using this macro in non-conforming or C++03 //!compilers, a move will be performed even if the C++11 standard does not allow it //!(e.g. returning a static variable). The user is responsible for using this macro - //!only used to return local objects that met C++11 criteria. + //!only to return local objects that met C++11 criteria. #define BOOST_MOVE_RET(RET_TYPE, REF)\ - (REF) + REF // #else //!defined(BOOST_MOVE_MSVC_AUTO_MOVE_RETURN_BUG) || defined(BOOST_MOVE_DOXYGEN_INVOKED)