Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fit iterator traits for ContainerIndexIterator (#3689)
It looks like that `std:: iterator_traits< Acts::ContainerIndexIterator< whatever ...> >::iterator_category ` was evaluated to `std::output_iterator_tag` instead of `Iter::iterator_category` (i.e. `std::random_access_iterator_tag`). This made it impossible to use `std::distance` with this iterator class. See https://en.cppreference.com/w/cpp/iterator/iterator_traits to see why. This PR fixes it.
- Loading branch information