[cfe-commits] [libcxx] r136232 - /libcxx/trunk/include/type_traits

Howard Hinnant hhinnant at apple.com
Wed Jul 27 11:34:06 PDT 2011


Author: hhinnant
Date: Wed Jul 27 13:34:06 2011
New Revision: 136232

URL: http://llvm.org/viewvc/llvm-project?rev=136232&view=rev
Log:
Fix PR10510: http://llvm.org/bugs/show_bug.cgi?id=10510

Modified:
    libcxx/trunk/include/type_traits

Modified: libcxx/trunk/include/type_traits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/type_traits?rev=136232&r1=136231&r2=136232&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Wed Jul 27 13:34:06 2011
@@ -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)
 {





More information about the cfe-commits mailing list