Эх сурвалжийг харах

fix(vector): make operator= return *this

greatbridf 2 жил өмнө
parent
commit
b8d3768286

+ 2 - 0
include/types/vector.hpp

@@ -150,6 +150,8 @@ public:
         arr.m_arr = nullptr;
         arr.m_capacity = 0;
         arr.m_size = 0;
+
+        return *this;
     }
 
     ~vector() noexcept