diff --git a/include/mtl/string.hpp b/include/mtl/string.hpp index 3284cb0..70b1f63 100644 --- a/include/mtl/string.hpp +++ b/include/mtl/string.hpp @@ -19,8 +19,8 @@ namespace mtl { class istring { protected: char* m_str; - size_t m_size; size_t m_capacity; + size_t m_size; public: static constexpr const size_t npos = -1; diff --git a/include/mtl/vector.hpp b/include/mtl/vector.hpp index 6738b93..a356592 100644 --- a/include/mtl/vector.hpp +++ b/include/mtl/vector.hpp @@ -18,8 +18,8 @@ template class ivector { private: T* m_arr; - size_t m_size; const size_t m_capacity; + size_t m_size; public: using value_type = T;