From 9a89d6a1853b25717b786676229d77ae39c3f05e 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. llvm-svn: 236035 --- clang/include/clang/AST/Stmt.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index 445cd84..ce9449d 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/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.7.4