I have a code where vector is defined like this
typedef std::vector<double> my_vec
and a matrix as
typedef std::vector<my_vec> matrix
Would it be possible to replace this definitions with a custom class which preserves all the features of the STL vector (does not break existing code) but can also be extended with new members.
In fact what I'm looking for is to simply add a bool flag to every vector.