From 560cbb008e628794f30c668651de40c21af43e68 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 29 Apr 2024 20:52:15 -0400 Subject: [PATCH] Fix "error: use template keyword to treat GetCollection as a dependent template name" --- src/libraries/JANA/Omni/JHasInputs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/JANA/Omni/JHasInputs.h b/src/libraries/JANA/Omni/JHasInputs.h index 7c6161ba4..94508807a 100644 --- a/src/libraries/JANA/Omni/JHasInputs.h +++ b/src/libraries/JANA/Omni/JHasInputs.h @@ -213,7 +213,7 @@ struct JHasInputs { } else { if (this->is_optional && !event.HasParent(level)) return; - m_data.push_back(event.GetParent(level).GetCollection(coll_name, !this->is_optional)); + m_data.push_back(event.GetParent(level).template GetCollection(coll_name, !this->is_optional)); } } } @@ -230,7 +230,7 @@ struct JHasInputs { } else { if (this->is_optional && !event.HasParent(level)) return; - event.GetParent(level).GetCollection(coll_name, !this->is_optional); + event.GetParent(level).template GetCollection(coll_name, !this->is_optional); } } }