From 6528e3ab67e02b76f531f28226d0369e4d9d63d8 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Tue, 28 Apr 2015 21:18:01 +0000 Subject: [PATCH] Attempt to fix the MSVC build by making ExprIterator inherit correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236035 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Stmt.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 445cd849fc..ce9449dc46 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -58,7 +58,9 @@ namespace clang { class Stmt; class Expr; - class ExprIterator { + class ExprIterator : public std::iterator { Stmt** I; public: ExprIterator(Stmt** i) : I(i) {} @@ -77,7 +79,10 @@ namespace clang { bool operator>=(const ExprIterator& R) const { return I >= R.I; } }; - class ConstExprIterator { + class ConstExprIterator : public std::iterator { const Stmt * const *I; public: ConstExprIterator(const Stmt * const *i) : I(i) {} -- 2.40.0