Is it possible to specialize a templated class defined within another
templeted class, like below:
template<typename U>
struct A
{ template<typename T>
struct B;
};
// Attempt to specialize internal class B for type int
template<typename U>
struct A<U>::B<int> {};
typedef A<long>::B<int> MyType; // this causes a failure
Online Comeau C++ fails without a message.
What is the right syntax, if any, for such specializations ?
Thanks,
Nikolai Borissov