summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--icetray/dryice/dryice.h4
1 files 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<typename T, typename I, typename ... Args>
- static auto replace(const Args & ... args)
+ static auto replace(Args && ... args)
{
pm()->remove<CubePlugIn>(typeid(T).name());
- return add<T, I>(args...);
+ return add<T, I>(std::forward<Args>(args)...);
}