From bfaafd539cec44ab3b0d5457e3a5b1b32fd417d8 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 25 Nov 2013 22:44:20 +0000 Subject: [PATCH] Don't use T as template argument, it is part of the application namespace. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@195693 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/ext/__hash | 2 +- include/type_traits | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ext/__hash b/include/ext/__hash index 04975bfd..c0523cce 100644 --- a/include/ext/__hash +++ b/include/ext/__hash @@ -19,7 +19,7 @@ namespace __gnu_cxx { using namespace std; -template struct _LIBCPP_TYPE_VIS_ONLY hash : public std::hash +template struct _LIBCPP_TYPE_VIS_ONLY hash : public std::hash<_Tp> { }; template <> struct _LIBCPP_TYPE_VIS_ONLY hash diff --git a/include/type_traits b/include/type_traits index c4afe5e1..0ad7b7f2 100644 --- a/include/type_traits +++ b/include/type_traits @@ -1409,7 +1409,7 @@ template using common_type_t = typename common_type<_Tp...>::type // is_assignable -template struct __select_2nd { typedef T type; }; +template struct __select_2nd { typedef _Tp type; }; template typename __select_2nd() = _VSTD::declval<_Arg>())), true_type>::type