diff --git a/Core/include/Acts/AmbiguityResolution/GreedyAmbiguityResolution.hpp b/Core/include/Acts/AmbiguityResolution/GreedyAmbiguityResolution.hpp index 76490d76eae..39f967b3494 100644 --- a/Core/include/Acts/AmbiguityResolution/GreedyAmbiguityResolution.hpp +++ b/Core/include/Acts/AmbiguityResolution/GreedyAmbiguityResolution.hpp @@ -43,7 +43,7 @@ class GreedyAmbiguityResolution { std::uint32_t maximumIterations = 1000; /// Minimum number of measurement to form a track. - size_t nMeasurementsMin = 7; + std::size_t nMeasurementsMin = 7; }; struct State { diff --git a/Core/include/Acts/Clusterization/Clusterization.hpp b/Core/include/Acts/Clusterization/Clusterization.hpp index 806b5c70e2e..39a1dc9b656 100644 --- a/Core/include/Acts/Clusterization/Clusterization.hpp +++ b/Core/include/Acts/Clusterization/Clusterization.hpp @@ -42,7 +42,7 @@ struct Connect1D { }; // Default connection type based on GridDim -template +template struct DefaultConnect { static_assert(GridDim != 1 && GridDim != 2, "Only grid dimensions of 1 or 2 are supported"); @@ -67,7 +67,7 @@ struct DefaultConnect : public Connect1D {}; /// /// @param [in] cells the cell collection to be labeled /// @param [in] connect the connection type (see DefaultConnect) -template > void labelClusters(CellCollection& cells, Connect connect = Connect()); @@ -80,13 +80,14 @@ void labelClusters(CellCollection& cells, Connect connect = Connect()); /// void clusterAddCell(Cluster&, const Cell&) /// /// @return nothing -template +template ClusterCollection mergeClusters(CellCollection& /*cells*/); /// @brief createClusters /// Convenience function which runs both labelClusters and createClusters. template > ClusterCollection createClusters(CellCollection& cells, diff --git a/Core/include/Acts/Clusterization/Clusterization.ipp b/Core/include/Acts/Clusterization/Clusterization.ipp index 13ccee6acb0..44f8abd1267 100644 --- a/Core/include/Acts/Clusterization/Clusterization.ipp +++ b/Core/include/Acts/Clusterization/Clusterization.ipp @@ -15,7 +15,7 @@ namespace Acts::Ccl::internal { // Machinery for validating generic Cell/Cluster types at compile-time -template +template struct cellTypeHasRequiredFunctions : std::false_type {}; template @@ -42,14 +42,14 @@ struct clusterTypeHasRequiredFunctions< std::void_t(), std::declval()))>> : std::true_type {}; -template +template constexpr void staticCheckGridDim() { static_assert( GridDim == 1 || GridDim == 2, "mergeClusters is only defined for grid dimensions of 1 or 2. "); } -template +template constexpr void staticCheckCellType() { constexpr bool hasFns = cellTypeHasRequiredFunctions(); static_assert(hasFns, @@ -67,7 +67,7 @@ constexpr void staticCheckClusterType() { "'void clusterAddCell(Cluster&, const Cell&)'"); } -template +template struct Compare { static_assert(GridDim != 1 && GridDim != 2, "Only grid dimensions of 1 or 2 are supported"); @@ -101,7 +101,7 @@ struct Compare { // wrapping, but it's way slower class DisjointSets { public: - explicit DisjointSets(size_t initial_size = 128) + explicit DisjointSets(std::size_t initial_size = 128) : m_size(initial_size), m_rank(m_size), m_parent(m_size), @@ -114,31 +114,32 @@ class DisjointSets { m_size *= 2; m_rank.resize(m_size); m_parent.resize(m_size); - m_ds = boost::disjoint_sets(&m_rank[0], &m_parent[0]); + m_ds = boost::disjoint_sets(&m_rank[0], + &m_parent[0]); } m_ds.make_set(m_globalId); return static_cast