From ba9cc85194892e613137e95c92ca9894b93c0d28 Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Thu, 6 Jan 2022 21:53:24 +0000 Subject: clang once again --- phrase-extract/syntax-common/tree-inl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phrase-extract/syntax-common/tree-inl.h b/phrase-extract/syntax-common/tree-inl.h index 811bae2d2..2dae0acb1 100644 --- a/phrase-extract/syntax-common/tree-inl.h +++ b/phrase-extract/syntax-common/tree-inl.h @@ -73,7 +73,7 @@ Tree::PreOrderIter::PreOrderIter(V &t) template template -Tree::PreOrderIter &Tree::PreOrderIter::operator++() { +typename Tree::template PreOrderIter &Tree::PreOrderIter::operator++() { // If the current node has children then visit the left-most child next. if (!node_->children().empty()) { index_stack_.push(0); @@ -100,7 +100,7 @@ Tree::PreOrderIter &Tree::PreOrderIter::operator++() { template template -Tree::PreOrderIter Tree::PreOrderIter::operator++(int) { +typename Tree::template PreOrderIter Tree::PreOrderIter::operator++(int) { PreOrderIter tmp(*this); ++*this; return tmp; @@ -162,7 +162,7 @@ Tree::LeafIter::LeafIter(V &t) template template -Tree::LeafIter &Tree::LeafIter::operator++() { +typename Tree::template LeafIter &Tree::LeafIter::operator++() { // Try node's ancestors until either a node is found with a sibling to the // right or we reach the root (in which case the traversal is complete). V *ancestor = node_->parent_; @@ -187,7 +187,7 @@ Tree::LeafIter &Tree::LeafIter::operator++() { template template -Tree::LeafIter Tree::LeafIter::operator++(int) { +typename Tree::template LeafIter Tree::LeafIter::operator++(int) { LeafIter tmp(*this); ++*this; return tmp; -- cgit v1.2.3