-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use BOOST_MAY_ALIAS only for GCC 4.4, as other MSVC, GCC, and Clang d…
…on't seem to need it.
- Loading branch information
1 parent
e25607d
commit 5e2e0f9
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,11 @@ | |
#define BOOST_MOVE_TO_RV_CAST(RV_TYPE, ARG) reinterpret_cast<RV_TYPE>(ARG) | ||
|
||
//Move emulation rv breaks standard aliasing rules so add workarounds for some compilers | ||
#define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS BOOST_MAY_ALIAS | ||
#if defined(BOOST_GCC) && (BOOST_GCC >= 40400) && (BOOST_GCC < 40500) | ||
#define BOOST_RV_ATTRIBUTE_MAY_ALIAS BOOST_MAY_ALIAS | ||
#else | ||
#define BOOST_RV_ATTRIBUTE_MAY_ALIAS BOOST_MAY_ALIAS | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
igaztanaga
Author
Member
|
||
#endif | ||
|
||
namespace boost { | ||
|
||
|
@@ -70,7 +74,7 @@ | |
// | ||
////////////////////////////////////////////////////////////////////////////// | ||
template <class T> | ||
class BOOST_MOVE_ATTRIBUTE_MAY_ALIAS rv | ||
class BOOST_RV_ATTRIBUTE_MAY_ALIAS rv | ||
: public ::boost::move_detail::if_c | ||
< ::boost::move_detail::is_class<T>::value | ||
, T | ||
|
You defined
BOOST_RV_ATTRIBUTE_MAY_ALIAS
to be the same value ofBOOST_MAY_ALIAS
on both compile-time branches?