Attempt to fix the MSVC build by making ExprIterator

inherit correctly.

llvm-svn: 236035
This commit is contained in:
Sean Callanan 2015-04-28 21:18:01 +00:00
parent 9a99aa75d7
commit 9a89d6a185
1 changed files with 7 additions and 2 deletions

View File

@ -58,7 +58,9 @@ namespace clang {
class Stmt;
class Expr;
class ExprIterator {
class ExprIterator : public std::iterator<std::forward_iterator_tag,
Expr *&, ptrdiff_t,
Expr *&, Expr *&> {
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<std::forward_iterator_tag,
const Expr *&, ptrdiff_t,
const Expr *&,
const Expr *&> {
const Stmt * const *I;
public:
ConstExprIterator(const Stmt * const *i) : I(i) {}