minor changes

This commit is contained in:
Michele Caini
2017-09-03 16:12:50 +02:00
parent af70573634
commit aeaf1632c8
+2 -2
View File
@@ -177,9 +177,9 @@ public:
}
template<typename... Args>
type & construct(index_type idx, Args... args) {
type & construct(index_type idx, Args&&... args) {
SparseSet<Index>::construct(idx);
instances.push_back({ args... });
instances.push_back({ std::forward<Args>(args)... });
return instances.back();
}