I like to abort creating a template class called Tab, which looks like this:
Code:
template < typename T >
class Tab{
protected :
int t ;
T *v ;
public :
// etc...
}
Then I created a class called Vec as:
Code:
class Vec : public Tab <double>
{
//...
}
This Vec works without problems.
Now I would like to create a class GroupVec like this:
Code:
//in the .hpp
class GroupVec : public Tab <Vec>
{
...
}
//in the .cpp, the constructor would
GroupVec::GroupVec(int a, int b)
: Table<Vec(a)>(b)
{
}
This method does not work. Is it possible to create a template of template?
Bookmarks