Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change templates order for labelClusters #1827

Merged
merged 1 commit into from
Feb 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Core/include/Acts/Clusterization/Clusterization.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ ConnectResult Connect1D<Cell>::operator()(const Cell& ref, const Cell& iter) {
return deltaCol == 1 ? ConnectResult::eConn : ConnectResult::eNoConnStop;
}

template <typename CellCollection, typename Connect, size_t GridDim>
template <typename CellCollection, size_t GridDim, typename Connect>
void labelClusters(CellCollection& cells, Connect connect) {
using Cell = typename CellCollection::value_type;
internal::staticCheckCellType<Cell, GridDim>();
Expand Down Expand Up @@ -316,7 +316,7 @@ ClusterCollection createClusters(CellCollection& cells, Connect connect) {
using Cluster = typename ClusterCollection::value_type;
internal::staticCheckCellType<Cell, GridDim>();
internal::staticCheckClusterType<Cluster&, const Cell&>();
labelClusters<CellCollection, Connect, GridDim>(cells, connect);
labelClusters<CellCollection, GridDim, Connect>(cells, connect);
return mergeClusters<CellCollection, ClusterCollection, GridDim>(cells);
}

Expand Down