r227768 - Remove decltype in an attempt to fix the MSVC build.

Benjamin Kramer benny.kra at googlemail.com
Sun Feb 1 13:32:12 PST 2015


Author: d0k
Date: Sun Feb  1 15:32:12 2015
New Revision: 227768

URL: http://llvm.org/viewvc/llvm-project?rev=227768&view=rev
Log:
Remove decltype in an attempt to fix the MSVC build.

C++ is hard, attempt #1 of n.

Modified:
    cfe/trunk/include/clang/Sema/Lookup.h

Modified: cfe/trunk/include/clang/Sema/Lookup.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Lookup.h?rev=227768&r1=227767&r2=227768&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Lookup.h (original)
+++ cfe/trunk/include/clang/Sema/Lookup.h Sun Feb  1 15:32:12 2015
@@ -735,12 +735,12 @@ public:
   }
 
   class iterator
-      : public llvm::iterator_adaptor_base<iterator, decltype(Decls)::iterator,
-                                           std::forward_iterator_tag,
-                                           NamedDecl *> {
+      : public llvm::iterator_adaptor_base<
+            iterator, llvm::DenseMap<NamedDecl *, NamedDecl *>::iterator,
+            std::forward_iterator_tag, NamedDecl *> {
     friend class ADLResult;
 
-    iterator(decltype(Decls)::iterator Iter)
+    iterator(llvm::DenseMap<NamedDecl *, NamedDecl *>::iterator Iter)
         : iterator_adaptor_base(std::move(Iter)) {}
 
   public:





More information about the cfe-commits mailing list