Skip to content

Commit

Permalink
Merge pull request #294 from veprbl/pr/clang_fix
Browse files Browse the repository at this point in the history
Fix "error: use template keyword to treat GetCollection as a dependent template name"
  • Loading branch information
nathanwbrei authored Apr 30, 2024
2 parents c1378b3 + 560cbb0 commit 56d1719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/JANA/Omni/JHasInputs.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ struct JHasInputs {
}
else {
if (this->is_optional && !event.HasParent(level)) return;
m_data.push_back(event.GetParent(level).GetCollection<PodioT>(coll_name, !this->is_optional));
m_data.push_back(event.GetParent(level).template GetCollection<PodioT>(coll_name, !this->is_optional));
}
}
}
Expand All @@ -230,7 +230,7 @@ struct JHasInputs {
}
else {
if (this->is_optional && !event.HasParent(level)) return;
event.GetParent(level).GetCollection<PodioT>(coll_name, !this->is_optional);
event.GetParent(level).template GetCollection<PodioT>(coll_name, !this->is_optional);
}
}
}
Expand Down

0 comments on commit 56d1719

Please sign in to comment.