]> granicus.if.org Git - clang/commitdiff
Remove decltype in an attempt to fix the MSVC build.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 1 Feb 2015 21:32:12 +0000 (21:32 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 1 Feb 2015 21:32:12 +0000 (21:32 +0000)
C++ is hard, attempt #1 of n.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227768 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Lookup.h

index a9892d20f9c703c76b3ed129b59fe9086e8dbd93..8ba78bea594adbf76318a29b9bef4704332b5db0 100644 (file)
@@ -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: