mirror of
https://github.com/boostorg/move.git
synced 2025-08-02 05:44:25 +02:00
Merge branch 'develop'
This commit is contained in:
@@ -762,8 +762,10 @@ Many thanks to all boosters that have tested, reviewed and improved the library.
|
|||||||
|
|
||||||
[section:release_notes Release Notes]
|
[section:release_notes Release Notes]
|
||||||
|
|
||||||
[section:release_notes_boost_1_58_01 Boost 1.58.1 Release]
|
[section:release_notes_boost_1_59 Boost 1.59 Release]
|
||||||
|
|
||||||
|
* Changed `unique_ptr`'s converting constructor taking the source by value in C++03 compilers to allow simple conversions
|
||||||
|
from convertible types returned by value.
|
||||||
* Fixed bug:
|
* Fixed bug:
|
||||||
* [@https://svn.boost.org/trac/boost/ticket/11229 Trac #11229: ['"vector incorrectly copies move-only objects using memcpy"]],
|
* [@https://svn.boost.org/trac/boost/ticket/11229 Trac #11229: ['"vector incorrectly copies move-only objects using memcpy"]],
|
||||||
|
|
||||||
|
@@ -53,10 +53,10 @@
|
|||||||
|
|
||||||
#include <boost/move/detail/type_traits.hpp>
|
#include <boost/move/detail/type_traits.hpp>
|
||||||
|
|
||||||
#if 1
|
#if defined(BOOST_MOVE_ADDRESS_SANITIZER_ON)
|
||||||
#define BOOST_MOVE_TO_RV_CAST(RV_TYPE, ARG) static_cast<RV_TYPE>(ARG)
|
|
||||||
#else
|
|
||||||
#define BOOST_MOVE_TO_RV_CAST(RV_TYPE, ARG) reinterpret_cast<RV_TYPE>(ARG)
|
#define BOOST_MOVE_TO_RV_CAST(RV_TYPE, ARG) reinterpret_cast<RV_TYPE>(ARG)
|
||||||
|
#else
|
||||||
|
#define BOOST_MOVE_TO_RV_CAST(RV_TYPE, ARG) static_cast<RV_TYPE>(ARG)
|
||||||
#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
|
||||||
|
@@ -23,6 +23,16 @@
|
|||||||
#define BOOST_MOVE_PERFECT_FORWARDING
|
#define BOOST_MOVE_PERFECT_FORWARDING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__has_feature)
|
||||||
|
#define BOOST_MOVE_HAS_FEATURE __has_feature
|
||||||
|
#else
|
||||||
|
#define BOOST_MOVE_HAS_FEATURE(x) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if BOOST_MOVE_HAS_FEATURE(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
|
||||||
|
#define BOOST_MOVE_ADDRESS_SANITIZER_ON
|
||||||
|
#endif
|
||||||
|
|
||||||
//Macros for documentation purposes. For code, expands to the argument
|
//Macros for documentation purposes. For code, expands to the argument
|
||||||
#define BOOST_MOVE_IMPDEF(TYPE) TYPE
|
#define BOOST_MOVE_IMPDEF(TYPE) TYPE
|
||||||
#define BOOST_MOVE_SEEDOC(TYPE) TYPE
|
#define BOOST_MOVE_SEEDOC(TYPE) TYPE
|
||||||
|
Reference in New Issue
Block a user