Commit 7aca3d94 by Paolo Carlini Committed by Paolo Carlini

move.h (move_if_noexcept): Use __and_ and __not_.

2011-06-06  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/move.h (move_if_noexcept): Use __and_ and __not_.

From-SVN: r174708
parent 11b815ca
2011-06-06 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/move.h (move_if_noexcept): Use __and_ and __not_.
2011-06-05 Jonathan Wakely <jwakely.gcc@gmail.com> 2011-06-05 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/ptr_traits.h (pointer_traits): Fix typos. * include/bits/ptr_traits.h (pointer_traits): Fix typos.
......
...@@ -90,8 +90,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -90,8 +90,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/ */
template<typename _Tp> template<typename _Tp>
inline typename inline typename
conditional<(!is_nothrow_move_constructible<_Tp>::value conditional<__and_<__not_<is_nothrow_move_constructible<_Tp>>,
&& is_copy_constructible<_Tp>::value), is_copy_constructible<_Tp>>::value,
const _Tp&, _Tp&&>::type const _Tp&, _Tp&&>::type
move_if_noexcept(_Tp& __x) noexcept move_if_noexcept(_Tp& __x) noexcept
{ return std::move(__x); } { return std::move(__x); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment