I am trying to instantiate a template, but I would like o to use typedef in the instantiation condition. I think the example says more than a thousand words:
typedef myTemplate_base<commonValue> myTemplate; //in 99% of the cases I use this so I want a shorthand extern template class myTemplate; //wont work/compiler error class infront of typedef
I get the same error if I try to instantiate a template as follows:
template class myTemplate;
I know that I can write an (extern) template class myTemplate_base<commonValue> instead, however, I think it is ugly, since I need to adjust the total value in 3 places instead of one.
So, how do I do this to use typedef in an extern / instance declaration?
I am using gcc 4.6.1 on Ubunutu
source share