From aeaf1632c837f72544447c2f7bd3245fb9dd077e Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Sun, 3 Sep 2017 16:12:50 +0200 Subject: [PATCH] minor changes --- src/sparse_set.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sparse_set.hpp b/src/sparse_set.hpp index a128d91bc..85b5691c4 100644 --- a/src/sparse_set.hpp +++ b/src/sparse_set.hpp @@ -177,9 +177,9 @@ public: } template - type & construct(index_type idx, Args... args) { + type & construct(index_type idx, Args&&... args) { SparseSet::construct(idx); - instances.push_back({ args... }); + instances.push_back({ std::forward(args)... }); return instances.back(); }