Reputation:
Can we introduce an alias for a partial specialization? I mean something like that:
template <class T, class V>
class A{ };
typedef template <class T> A<T, int> MyPartialSpecializa<T>;
int main(){ }
But it doesn't work. What does the Standard say about that?
Upvotes: 0
Views: 56
Reputation: 21000
You need an alias template for this
template <class T, class V>
class A{ };
template <class T>
using MyPartialSpecializa = A<T, int>;
int main()
{
MyPartialSpecializa<double> a;
}
Upvotes: 4