From 116cf050c588b8d869a0cfc9235ddeb401247b72 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 27 Oct 2019 14:49:19 +0000 Subject: Perfect forward in replace --- icetray/dryice/dryice.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icetray/dryice/dryice.h b/icetray/dryice/dryice.h index 237c31f..cf26281 100644 --- a/icetray/dryice/dryice.h +++ b/icetray/dryice/dryice.h @@ -24,10 +24,10 @@ namespace IceTray { void replace(const std::string &, const Ice::ObjectPtr &); template - static auto replace(const Args & ... args) + static auto replace(Args && ... args) { pm()->remove(typeid(T).name()); - return add(args...); + return add(std::forward(args)...); } -- cgit v1.2.3