From ba865ff66b36f99a1dc5d9e31af3d8943f94e349 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 10 Aug 2015 16:58:04 +0000 Subject: [PATCH] Protect template argument from user interference. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@244462 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/type_traits | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/type_traits b/include/type_traits index db8a0434..f0defafe 100644 --- a/include/type_traits +++ b/include/type_traits @@ -219,8 +219,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD template struct __void_t { typedef void type; }; -template -struct __identity { typedef T type; }; +template +struct __identity { typedef _Tp type; }; template struct _LIBCPP_TYPE_VIS_ONLY __dependent_type : public _Tp {};