diff --git a/gtsam/inference/BayesTree-inl.h b/gtsam/inference/BayesTree-inl.h index faacea8a7..788770812 100644 --- a/gtsam/inference/BayesTree-inl.h +++ b/gtsam/inference/BayesTree-inl.h @@ -583,7 +583,7 @@ namespace gtsam { } // Find the path intersection B = this->root(); - FastList::const_iterator p1 = path1.begin(), p2 = path2.begin(); + typename FastList::const_iterator p1 = path1.begin(), p2 = path2.begin(); while(p1 != path1.end() && p2 != path2.end() && *p1 == *p2) { B = *p1; ++p1;