From 08142fa6c7d63ad0a822e1e572a9c86478ba2737 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. llvm-svn: 244462 --- libcxx/include/type_traits | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits index db8a0434b616..f0defafec6d3 100644 --- a/libcxx/include/type_traits +++ b/libcxx/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 {};