commit | d36369d9107da9a33e49cbdce76b5ba1c0736ace | [log] [tgz] |
---|---|---|
author | Howard Hinnant <hhinnant@apple.com> | Wed Jul 27 18:34:06 2011 +0000 |
committer | Howard Hinnant <hhinnant@apple.com> | Wed Jul 27 18:34:06 2011 +0000 |
tree | 0525feb790b72e3035e010ef46d93636342c9f84 | |
parent | 4f598034d29abf6609ca1f697f98a02b3a786121 [diff] |
Fix PR10510: http://llvm.org/bugs/show_bug.cgi?id=10510 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@136232 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/type_traits b/include/type_traits index ec12b6b..be893b0 100644 --- a/include/type_traits +++ b/include/type_traits
@@ -3014,11 +3014,15 @@ template <class _Tp> inline _LIBCPP_INLINE_VISIBILITY +#ifndef _LIBCPP_HAS_NO_ADVANCED_SFINAE typename enable_if < is_move_constructible<_Tp>::value && is_move_assignable<_Tp>::value >::type +#else +void +#endif swap(_Tp& __x, _Tp& __y) _NOEXCEPT_(is_nothrow_move_constructible<_Tp>::value && is_nothrow_move_assignable<_Tp>::value) {