Parcourir la source

fix(vector): make operator= return *this

greatbridf il y a 2 ans
Parent
commit
b8d3768286
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      include/types/vector.hpp

+ 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