diff --git a/include/blt/math/vectors.h b/include/blt/math/vectors.h index 325f441..53fd33a 100644 --- a/include/blt/math/vectors.h +++ b/include/blt/math/vectors.h @@ -45,8 +45,8 @@ namespace blt { } vec(const vec& copy): vec(copy.elements, size) {} - template - vec(const vec<_T, _size>& copy): vec(copy.elements, size) {} + template + vec(const vec& copy): vec(copy.elements, size) {} vec& operator=(const vec& copy) { if (© == this) @@ -104,10 +104,10 @@ namespace blt { } inline vec operator-() { - T negativeCopy[size]; + vec initializer{}; for (uint32_t i = 0; i < size; i++) - negativeCopy[i] = -elements[i]; - return vec{negativeCopy}; + initializer[i] = -elements[i]; + return vec{initializer}; } inline vec& operator+=(const vec& other) {