Fix initializer list reordering warnings

Caused because initializer list must be in the same order as the member
declarations.
This commit is contained in:
Myles Busig 2024-08-18 23:50:14 -07:00
parent fe2d8cf42b
commit 2005028424
2 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ namespace mtl {
class istring { class istring {
protected: protected:
char* m_str; char* m_str;
size_t m_size;
size_t m_capacity; size_t m_capacity;
size_t m_size;
public: public:
static constexpr const size_t npos = -1; static constexpr const size_t npos = -1;

View File

@ -18,8 +18,8 @@ template <typename T>
class ivector { class ivector {
private: private:
T* m_arr; T* m_arr;
size_t m_size;
const size_t m_capacity; const size_t m_capacity;
size_t m_size;
public: public:
using value_type = T; using value_type = T;