summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-10-27 14:49:19 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-10-27 14:49:19 +0000
commit116cf050c588b8d869a0cfc9235ddeb401247b72 (patch)
treec0cb141407b219fe3c4cb4dd181e480a90d4e321
parentRemove local pkg-config.jam (diff)
downloadicetray-0.4.2.tar.bz2
icetray-0.4.2.tar.xz
icetray-0.4.2.zip
Perfect forward in replaceicetray-0.4.2
-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)...);
}