Index: include/bits/stl_pair.h =================================================================== --- include/bits/stl_pair.h (revision 156569) +++ include/bits/stl_pair.h (working copy) @@ -1,6 +1,6 @@ // Pair implementation -*- C++ -*- -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -90,20 +90,20 @@ #ifdef __GXX_EXPERIMENTAL_CXX0X__ // DR 811. template::value>::type> + std::enable_if::value>::type> pair(_U1&& __x, const _T2& __y) : first(std::forward<_U1>(__x)), second(__y) { } template::value>::type> + std::enable_if::value>::type> pair(const _T1& __x, _U2&& __y) : first(__x), second(std::forward<_U2>(__y)) { } template::value - && std::is_constructible<_T2, _U2&&>::value>::type> + std::enable_if::value + && std::is_convertible<_U2, _T2>::value>::type> pair(_U1&& __x, _U2&& __y) : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }