Closed
Description
It currently seems to be impossible to use podio collections with the STL algorithms operating on iterator ranges, because the CollectionIterator
does not provide enough information, leading the compiler complaining about (greatly abbreviated to the crucial line):
/usr/include/c++/9/bits/stl_iterator_base_types.h:205:5: error: no type named ‘iterator_category’ in ‘struct std::iterator_traits<edm4hep::MCRecoParticleAssociationCollectionIterator>’
I think having a correctly implemented const-iterator is something we should aim for, to at least enable the usage of STL algorithms that can be used on ranges of const-iterators.
Metadata
Metadata
Assignees
Labels
No labels