<Not that I have something against pointers, but they'd make the class awkward to use>
The problem is about a matrix class.
I'm trying to make a trade-off...which I think is justified.
The idea is to store both the matrix and its transpose as member vector<vector<T>> `s. (Not exactly T...a pointer..reference..or something else)
That way... transpose would just be a std::swap and grabbing or interchanging rows and/or columns would just be accessing or swapping a vector<>.
Forgetting about templates for now, consider I have an integer matrix;
How exactly should I design it, such that, when an element from either of the representations get modified, the other one gets changed to, automatically ?
(This felt like a simple thing to do at first.....and here I am...after some blunders!)