summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-07-27 18:34:06 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-07-27 18:34:06 +0000
commit21f78d88e1cb27287b249be5b048e411e1490760 (patch)
tree9c35c5e11ab3babe7eab80d20abb22f366b71aa1 /libcxx
parent07c10246b521cf8a8ee47932368aa57021f4f452 (diff)
downloadbcm5719-llvm-21f78d88e1cb27287b249be5b048e411e1490760.tar.gz
bcm5719-llvm-21f78d88e1cb27287b249be5b048e411e1490760.zip
Fix PR10510: http://llvm.org/bugs/show_bug.cgi?id=10510
llvm-svn: 136232
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/type_traits4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits
index ec12b6b928c..be893b0dd51 100644
--- a/libcxx/include/type_traits
+++ b/libcxx/include/type_traits
@@ -3014,11 +3014,15 @@ struct __invoke_of
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)
{
OpenPOWER on IntegriCloud