From 5ea2e37c0856ce9dc45a52c9da7c1240cee37afa Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 25 Jan 2011 23:11:15 +0000 Subject: [PATCH] Remove an (incorrect) compiler workaround in the __mu function. The workaround relied on rvalue references binding to non-function lvalues, while the original formulation (with std::forward) does the right thing. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@124241 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/functional | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/functional b/include/functional index a5a7dc2a0..73c6c5900 100644 --- a/include/functional +++ b/include/functional @@ -1559,10 +1559,7 @@ typename enable_if __mu(_Ti&, _Uj& __uj) { const size_t _Indx = is_placeholder<_Ti>::value - 1; - // compiler bug workaround - typename tuple_element<_Indx, _Uj>::type __t = get<_Indx>(__uj); - return __t; -// return _STD::forward::type>(get<_Indx>(__uj)); + return _STD::forward::type>(get<_Indx>(__uj)); } template