@@ -42,8 +42,7 @@ namespace o2::framework
42
42
struct HistFiller {
43
43
// fill any type of histogram (if weight was requested it must be the last argument)
44
44
template <typename T, typename ... Ts>
45
- static void fillHistAny (std::shared_ptr<T> hist, Ts... positionAndWeight)
46
- requires(std::is_arithmetic_v<Ts> && ...);
45
+ static void fillHistAny (std::shared_ptr<T> hist, Ts... positionAndWeight) requires(std::is_arithmetic_v<Ts>&&...);
47
46
48
47
// fill any type of histogram with columns (Cs) of a filtered table (if weight is requested it must reside the last specified column)
49
48
template <typename ... Cs, typename R, typename T>
@@ -128,8 +127,7 @@ class HistogramRegistry
128
127
129
128
// fill hist with values
130
129
template <typename ... Ts>
131
- void fill (const HistName& histName, Ts... positionAndWeight)
132
- requires(std::is_arithmetic_v<Ts> && ...);
130
+ void fill (const HistName& histName, Ts... positionAndWeight) requires(std::is_arithmetic_v<Ts>&&...);
133
131
134
132
// fill hist with content of (filtered) table columns
135
133
template <typename ... Cs, typename T>
@@ -199,8 +197,7 @@ class HistogramRegistry
199
197
// --------------------------------------------------------------------------------------------------
200
198
201
199
template <typename T, typename ... Ts>
202
- void HistFiller::fillHistAny (std::shared_ptr<T> hist, Ts... positionAndWeight)
203
- requires(std::is_arithmetic_v<Ts> && ...)
200
+ void HistFiller::fillHistAny (std::shared_ptr<T> hist, Ts... positionAndWeight) requires(std::is_arithmetic_v<Ts>&&...)
204
201
{
205
202
constexpr int nArgs = sizeof ...(Ts);
206
203
@@ -415,8 +412,7 @@ uint32_t HistogramRegistry::getHistIndex(const T& histName)
415
412
}
416
413
417
414
template <typename ... Ts>
418
- void HistogramRegistry::fill (const HistName& histName, Ts... positionAndWeight)
419
- requires(std::is_arithmetic_v<Ts> && ...)
415
+ void HistogramRegistry::fill (const HistName& histName, Ts... positionAndWeight) requires(std::is_arithmetic_v<Ts>&&...)
420
416
{
421
417
std::visit ([positionAndWeight...](auto && hist) { HistFiller::fillHistAny (hist, positionAndWeight...); }, mRegistryValue [getHistIndex (histName)]);
422
418
}
0 commit comments