This is my code. How do I make A::type
be int
or double
or whatever else is used to make instances of class B
?
template<class X>
class A
{
typedef "*****" type
........
.....
......
}
template<class Y>
class B
{
......
.......
....
}
int main()
{
B<int> x;
A<B<int> > y;
.....
....
....
}