Przeglądaj źródła

fix(vector): make operator= return *this

greatbridf 2 lat temu
rodzic
commit
b8d3768286
1 zmienionych plików z 2 dodań i 0 usunięć
  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