From a5448fade9d175d8f3397b39819a3beb2c63c55b Mon Sep 17 00:00:00 2001 From: Dawid Medrek Date: Fri, 1 Sep 2023 22:42:58 +0200 Subject: [PATCH] Simplify service_set constructor in init.hh Leverage the comma operator with a parameter pack. Closes #15246 --- init.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.hh b/init.hh index 6c2882c9ab..5c60add718 100644 --- a/init.hh +++ b/init.hh @@ -45,7 +45,7 @@ public: service_set(seastar::sharded&... args) : service_set() { - (void)std::initializer_list{ (add(args), 0)...}; + (..., add(args)); } template void add(seastar::sharded& t) {