Skip to content

Commit

Permalink
Merge pull request #213 from jslee02/patch-1
Browse files Browse the repository at this point in the history
Add missing typename keyword to iterators
  • Loading branch information
ahornung authored Nov 1, 2018
2 parents aef5c45 + 7861efe commit 0d02605
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions octomap/include/octomap/OcTreeBaseImpl.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ namespace octomap {
}

// traverse all nodes, check if structure the same
OcTreeBaseImpl<NODE,I>::tree_iterator it = this->begin_tree();
OcTreeBaseImpl<NODE,I>::tree_iterator end = this->end_tree();
OcTreeBaseImpl<NODE,I>::tree_iterator other_it = other.begin_tree();
OcTreeBaseImpl<NODE,I>::tree_iterator other_end = other.end_tree();
typename OcTreeBaseImpl<NODE,I>::tree_iterator it = this->begin_tree();
typename OcTreeBaseImpl<NODE,I>::tree_iterator end = this->end_tree();
typename OcTreeBaseImpl<NODE,I>::tree_iterator other_it = other.begin_tree();
typename OcTreeBaseImpl<NODE,I>::tree_iterator other_end = other.end_tree();

for (; it != end; ++it, ++other_it){
if (other_it == other_end)
Expand Down

0 comments on commit 0d02605

Please sign in to comment.