When writing the matrix class, it was decided to use the following approach:
class Matrix { public: Matrix(int _size) :m_size(_size) {}; Matrix(std::initializer_list<std::initializer_list<int>> _input):m_matrix(_input) {}; private: int m_size; std::vector<std::vector<int>> m_matrix; }; But he is not a worker, because no suitable constructor for nested vector
What constructor can you think of that would be possible to initialize the form:
Matrix MyMatrix{{1,2},{3,4}};