From 21f78d88e1cb27287b249be5b048e411e1490760 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 27 Jul 2011 18:34:06 +0000 Subject: Fix PR10510: http://llvm.org/bugs/show_bug.cgi?id=10510 llvm-svn: 136232 --- libcxx/include/type_traits | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcxx') 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 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) { -- cgit v1.2.3