[libcxx] r225408 - Missed a typename

Marshall Clow mclow.lists at gmail.com
Wed Jan 7 14:26:48 PST 2015


Author: marshall
Date: Wed Jan  7 16:26:48 2015
New Revision: 225408

URL: http://llvm.org/viewvc/llvm-project?rev=225408&view=rev
Log:
Missed a typename

Modified:
    libcxx/trunk/test/std/utilities/function.objects/unord.hash/enum.pass.cpp

Modified: libcxx/trunk/test/std/utilities/function.objects/unord.hash/enum.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/unord.hash/enum.pass.cpp?rev=225408&r1=225407&r2=225408&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/unord.hash/enum.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/unord.hash/enum.pass.cpp Wed Jan  7 16:26:48 2015
@@ -34,8 +34,8 @@ void
 test()
 {
     typedef std::hash<T> H;
-    static_assert((std::is_same<H::argument_type, T>::value), "" );
-    static_assert((std::is_same<H::result_type, std::size_t>::value), "" );
+    static_assert((std::is_same<typename H::argument_type, T>::value), "" );
+    static_assert((std::is_same<typename H::result_type, std::size_t>::value), "" );
     typedef typename std::underlying_type<T>::type under_type;
     
     H h1;





More information about the cfe-commits mailing list