From b9c7c7cf6e6ac47350e626c8491efcad0b8dd8f7 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sun, 29 May 2022 15:58:18 -0700 Subject: [PATCH] Fix broken constructor --- quicktex/Vec.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/quicktex/Vec.h b/quicktex/Vec.h index 3fca8d2..fab80e1 100644 --- a/quicktex/Vec.h +++ b/quicktex/Vec.h @@ -48,9 +48,7 @@ template class Vec { * @param rvalue Source vector to copy from */ template Vec(std::enable_if_t, const Vec> &rvalue) { - Vec lvalue; - for (unsigned i = 0; i < N; i++) { lvalue[i] = static_cast(rvalue[i]); } - return lvalue; + for (unsigned i = 0; i < N; i++) { at(i) = static_cast(rvalue[i]); } } /**