Skip to content

Commit b30a941

Browse files
committed
fix: move multilambda template into class scope
1 parent 42ed0ac commit b30a941

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/algorithms/calorimetry/CalorimeterIslandCluster.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
using namespace edm4eic;
3535

3636
namespace eicrecon {
37-
template <typename... L> struct multilambda : L... {
38-
using L::operator()...;
39-
constexpr multilambda(L... lambda) : L(std::move(lambda))... {}
40-
};
4137

4238
static double Phi_mpi_pi(double phi) { return std::remainder(phi, 2 * M_PI); }
4339

src/algorithms/calorimetry/CalorimeterIslandCluster.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ class CalorimeterIslandCluster : public CalorimeterIslandClusterAlgorithm,
7070
dd4hep::IDDescriptor m_idSpec;
7171

7272
private:
73+
template <typename... L> struct multilambda : L... {
74+
using L::operator()...;
75+
constexpr multilambda(L... lambda) : L(std::move(lambda))... {}
76+
};
77+
7378
// grouping function with Breadth-First Search
7479
void bfs_group(const edm4eic::CalorimeterHitCollection& hits, std::set<std::size_t>& group,
7580
std::size_t idx, std::vector<bool>& visits) const;

src/algorithms/calorimetry/ImagingTopoCluster.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
#include "algorithms/calorimetry/ImagingTopoClusterConfig.h"
3838

3939
namespace eicrecon {
40-
template <typename... L> struct multilambda : L... {
41-
using L::operator()...;
42-
constexpr multilambda(L... lambda) : L(std::move(lambda))... {}
43-
};
4440

4541
void ImagingTopoCluster::init() {
4642

src/algorithms/calorimetry/ImagingTopoCluster.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ class ImagingTopoCluster : public ImagingTopoClusterAlgorithm,
6969
void process(const Input& input, const Output& output) const final;
7070

7171
private:
72+
template <typename... L> struct multilambda : L... {
73+
using L::operator()...;
74+
constexpr multilambda(L... lambda) : L(std::move(lambda))... {}
75+
};
76+
7277
// helper function to group hits
7378
bool is_neighbour(const edm4eic::CalorimeterHit& h1, const edm4eic::CalorimeterHit& h2) const;
7479

0 commit comments

Comments
 (0)