From 020d6572c79dc0bc04f19d8e49f5f344d04a815a Mon Sep 17 00:00:00 2001 From: Maddie Busig Date: Sun, 11 May 2025 08:56:56 -0700 Subject: [PATCH] Add missing assignment operator overload for vec2=vec2 --- include/mtl/vec.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mtl/vec.hpp b/include/mtl/vec.hpp index b083825..a87750d 100644 --- a/include/mtl/vec.hpp +++ b/include/mtl/vec.hpp @@ -160,6 +160,10 @@ public: y = _y; } + constexpr vec2& operator=(const vec2& other) noexcept { + vec2::operator=(other); + return *this; + } constexpr vec2& operator=(const vec<2>& other) noexcept { vec::operator=(other); return *this;