I have code where I want to typedef a templated class for easier reading:
template<int A, int B>
using templateClass = templateClass<A,B>;
void aFunction(templateClass& tc);
int main(){
templateClass<10, 34> tc;
aFunction(tc);
}
void aFunction(templateClass& tc){
...
}
but I get many errors regarding the template identifiers not being found. How should this be done? I was trying to follow this example:
How to typedef a template class?
Aucun commentaire:
Enregistrer un commentaire