mirror of
https://github.com/boostorg/move.git
synced 2025-08-01 21:34:27 +02:00
Merged changeset 76271 https://svn.boost.org/trac/boost/changeset/76271
[SVN r76299]
This commit is contained in:
@@ -283,6 +283,10 @@
|
|||||||
: BOOST_MOVE_BOOST_NS::integral_constant<bool, false>
|
: BOOST_MOVE_BOOST_NS::integral_constant<bool, false>
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
struct has_move_emulation_enabled_aux
|
||||||
|
: has_move_emulation_enabled<T> {};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
struct has_nothrow_move
|
struct has_nothrow_move
|
||||||
: public BOOST_MOVE_BOOST_NS::integral_constant<bool, false>
|
: public BOOST_MOVE_BOOST_NS::integral_constant<bool, false>
|
||||||
@@ -293,8 +297,9 @@
|
|||||||
// move()
|
// move()
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
typename BOOST_MOVE_BOOST_NS::disable_if<has_move_emulation_enabled<T>, T&>::type move(T& x)
|
typename BOOST_MOVE_BOOST_NS::disable_if<has_move_emulation_enabled_aux<T>, T&>::type move(T& x)
|
||||||
{
|
{
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user