From 9c59d3811270a94e170156eb757a321ce234a548 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 27 Jul 2011 19:25:28 +0000 Subject: [PATCH] Fix PR10509: http://llvm.org/bugs/show_bug.cgi?id=10509 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@136247 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/utility | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/utility b/include/utility index d0aee559a..358fe765d 100644 --- a/include/utility +++ b/include/utility @@ -226,9 +226,12 @@ struct _LIBCPP_VISIBLE pair template _LIBCPP_INLINE_VISIBILITY - pair(const pair<_U1, _U2>& __p, - typename enable_if::value && - is_constructible<_T2, _U2>::value>::type* = 0) + pair(const pair<_U1, _U2>& __p +#ifndef _LIBCPP_HAS_NO_ADVANCED_SFINAE + ,typename enable_if::value && + is_constructible<_T2, _U2>::value>::type* = 0 +#endif + ) : first(__p.first), second(__p.second) {} _LIBCPP_INLINE_VISIBILITY