Skip to content

Commit 1dc42a9

Browse files
committed
Add typename to fix compilation error
1 parent ba9066b commit 1dc42a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/podio/Frame.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Frame {
208208
/// @returns A const reference to the collection if it is available or to
209209
/// an empty (static) collection
210210
template <CollectionType CollT>
211-
const CollT& get(const CollT::value_type& object) const;
211+
const CollT& get(const typename CollT::value_type& object) const;
212212

213213
/// Get the collection pointer to which the passed object belongs from the
214214
/// Frame.
@@ -406,7 +406,7 @@ const CollT& Frame::get(const std::string& name) const {
406406
}
407407

408408
template <CollectionType CollT>
409-
const CollT& Frame::get(const CollT::value_type& object) const {
409+
const CollT& Frame::get(const typename CollT::value_type& object) const {
410410
const auto name = m_self->getIDTable().name(object.id().collectionID);
411411
return get<CollT>(name.value_or(""));
412412
}

0 commit comments

Comments
 (0)