[libcxx] r244462 - Protect template argument from user interference.
Joerg Sonnenberger via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 10 09:58:04 PDT 2015
Author: joerg
Date: Mon Aug 10 11:58:04 2015
New Revision: 244462
URL: http://llvm.org/viewvc/llvm-project?rev=244462&view=rev
Log:
Protect template argument from user interference.
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=244462&r1=244461&r2=244462&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Mon Aug 10 11:58:04 2015
@@ -219,8 +219,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
template <class>
struct __void_t { typedef void type; };
-template <class T>
-struct __identity { typedef T type; };
+template <class _Tp>
+struct __identity { typedef _Tp type; };
template <class _Tp, bool>
struct _LIBCPP_TYPE_VIS_ONLY __dependent_type : public _Tp {};
More information about the cfe-commits
mailing list