Simplify service_set constructor in init.hh

Leverage the comma operator with a parameter pack.

Closes #15246
This commit is contained in:
Dawid Medrek
2023-09-01 22:42:58 +02:00
committed by Avi Kivity
parent cf37ab96f4
commit a5448fade9

View File

@@ -45,7 +45,7 @@ public:
service_set(seastar::sharded<Args>&... args)
: service_set()
{
(void)std::initializer_list<int>{ (add(args), 0)...};
(..., add(args));
}
template<typename T>
void add(seastar::sharded<T>& t) {