@@ -45,8 +45,7 @@ concept FillValue = std::is_integral_v<T> || std::is_floating_point_v<T> || std:
45
45
struct HistFiller {
46
46
// fill any type of histogram (if weight was requested it must be the last argument)
47
47
template <typename T, typename ... Ts>
48
- static void fillHistAny (std::shared_ptr<T> hist, Ts... positionAndWeight)
49
- requires(FillValue<Ts> && ...);
48
+ static void fillHistAny (std::shared_ptr<T> hist, Ts... positionAndWeight) requires(FillValue<Ts>&&...);
50
49
51
50
// fill any type of histogram with columns (Cs) of a filtered table (if weight is requested it must reside the last specified column)
52
51
template <typename ... Cs, typename R, typename T>
@@ -131,8 +130,7 @@ class HistogramRegistry
131
130
132
131
// fill hist with values
133
132
template <typename ... Ts>
134
- void fill (const HistName& histName, Ts... positionAndWeight)
135
- requires(FillValue<Ts> && ...);
133
+ void fill (const HistName& histName, Ts... positionAndWeight) requires(FillValue<Ts>&&...);
136
134
137
135
// fill hist with content of (filtered) table columns
138
136
template <typename ... Cs, typename T>
@@ -202,8 +200,7 @@ class HistogramRegistry
202
200
// --------------------------------------------------------------------------------------------------
203
201
204
202
template <typename T, typename ... Ts>
205
- void HistFiller::fillHistAny (std::shared_ptr<T> hist, Ts... positionAndWeight)
206
- requires(FillValue<Ts> && ...)
203
+ void HistFiller::fillHistAny (std::shared_ptr<T> hist, Ts... positionAndWeight) requires(FillValue<Ts>&&...)
207
204
{
208
205
constexpr int nArgs = sizeof ...(Ts);
209
206
@@ -418,8 +415,7 @@ uint32_t HistogramRegistry::getHistIndex(const T& histName)
418
415
}
419
416
420
417
template <typename ... Ts>
421
- void HistogramRegistry::fill (const HistName& histName, Ts... positionAndWeight)
422
- requires(FillValue<Ts> && ...)
418
+ void HistogramRegistry::fill (const HistName& histName, Ts... positionAndWeight) requires(FillValue<Ts>&&...)
423
419
{
424
420
std::visit ([positionAndWeight...](auto && hist) { HistFiller::fillHistAny (hist, positionAndWeight...); }, mRegistryValue [getHistIndex (histName)]);
425
421
}
0 commit comments