[libcxx] r195693 - Don't use T as template argument, it is part of the application
Joerg Sonnenberger
joerg at bec.de
Mon Nov 25 14:44:21 PST 2013
Author: joerg
Date: Mon Nov 25 16:44:20 2013
New Revision: 195693
URL: http://llvm.org/viewvc/llvm-project?rev=195693&view=rev
Log:
Don't use T as template argument, it is part of the application
namespace.
Modified:
libcxx/trunk/include/ext/__hash
libcxx/trunk/include/type_traits
Modified: libcxx/trunk/include/ext/__hash
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/ext/__hash?rev=195693&r1=195692&r2=195693&view=diff
==============================================================================
--- libcxx/trunk/include/ext/__hash (original)
+++ libcxx/trunk/include/ext/__hash Mon Nov 25 16:44:20 2013
@@ -19,7 +19,7 @@
namespace __gnu_cxx {
using namespace std;
-template <typename T> struct _LIBCPP_TYPE_VIS_ONLY hash : public std::hash<T>
+template <typename _Tp> struct _LIBCPP_TYPE_VIS_ONLY hash : public std::hash<_Tp>
{ };
template <> struct _LIBCPP_TYPE_VIS_ONLY hash<const char*>
Modified: libcxx/trunk/include/type_traits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/type_traits?rev=195693&r1=195692&r2=195693&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Mon Nov 25 16:44:20 2013
@@ -1409,7 +1409,7 @@ template <class ..._Tp> using common_typ
// is_assignable
-template<typename, typename T> struct __select_2nd { typedef T type; };
+template<typename, typename _Tp> struct __select_2nd { typedef _Tp type; };
template <class _Tp, class _Arg>
typename __select_2nd<decltype((_VSTD::declval<_Tp>() = _VSTD::declval<_Arg>())), true_type>::type
More information about the cfe-commits
mailing list