Here is one way to do it.
typedef A<int> IntA;
typedef A<MyOtherType> MyOtherInt;
B<IntA> b1;
B<MyOtherInt> b2;
Or you could go one step further.
typedef A<int> IntA;
typedef A<MyOtherType> MyOtherInt;
typedef B<IntA> myIntBA;
typedef B<MyOtherInt> myOtherBA;
myIntBA b1;
myOtherBA b2;
You could also make the above into a single typedef.
typedef B<A<int>> myIntBA;
typedef B<A<MyOtherType>> myOtherBA;
myIntBA b1;
myOtherBA b2;
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)