From: Sean Callanan Date: Tue, 28 Apr 2015 21:18:01 +0000 (+0000) Subject: Attempt to fix the MSVC build by making ExprIterator X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6528e3ab67e02b76f531f28226d0369e4d9d63d8;p=clang 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 --- 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) {}