@@ -15,6 +15,11 @@ public:
}
+ /*template<typename... Args>
+ Vector(Args&&... args) {
+ args.
+ }*/
+
Vector(float, float) = delete;
Vector(float, float, float) = delete;
Vector(float, float, float, float) = delete;
@@ -96,7 +96,7 @@ public:
if(s.result == FREE_INDEX_FOUND) {
used[s.index] = keys.getLength();
keys.add(key);
- values.add(args...);
+ values.add(std::forward<Args>(args)...);
return false;
return true;
@@ -102,7 +102,7 @@ public:
if(length >= N) {
return *this;
- new (end()) T(args...);
+ new (end()) T(std::forward<Args>(args)...);
length++;