I'm trying to build a generic matrix based on a generic vector that I've already built. I want to have a vector of vectors (each internal vector represents a row). For some reason, this isn't working:
template <typename T>
class matrix : vector<vector<T>>{...}
I'm getting this error:
error: 'class vector<T>' is not a valid type for a template non-type parameter
I tried looking into template templates, but couldn't really understand how to make them work. Any help would be much appreciated. Thanks!