Implement LWG 3039 and 3041 - 'Treating Unnecessary decay'.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@328054 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/thread b/include/thread
index 1b8dca3..0629d70 100644
--- a/include/thread
+++ b/include/thread
@@ -298,7 +298,7 @@
template <class _Fp, class ..._Args,
class = typename enable_if
<
- !is_same<typename decay<_Fp>::type, thread>::value
+ !is_same<typename __uncvref<_Fp>::type, thread>::value
>::type
>
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS