Fix initializer list reordering warnings

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

View File

@ -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;

View File

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