Skip to content

Commit

Permalink
Fix missing typename in sanity checks
Browse files Browse the repository at this point in the history
acts-project/acts#4068 exposes a mistake in our
sanity checks, revealing that there are some missing typename keywords.
This commit fixes those errors by adding the necessary keywords.
  • Loading branch information
stephenswat committed Feb 4, 2025
1 parent 86ac4c9 commit aa46462
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/include/traccc/sanity/contiguous_on.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ is_contiguous_on(P&& projection, const CONTAINER& in) {
// Compress adjacent elements
for (std::size_t i = 0; i < n; ++i) {
if (i == 0) {
iout[iout_size++] =
projection(in.at(static_cast<CONTAINER::size_type>(i)));
iout[iout_size++] = projection(
in.at(static_cast<typename CONTAINER::size_type>(i)));
} else {
projection_t v =
projection(in.at(static_cast<CONTAINER::size_type>(i)));
projection_t v = projection(
in.at(static_cast<typename CONTAINER::size_type>(i)));

if (v != iout[iout_size - 1]) {
iout[iout_size++] = v;
Expand Down

0 comments on commit aa46462

Please sign in to comment.