Name: Anonymous 2008-12-08 18:34
template <class T>
class A
{
public:
typedef T Foo;
};
template <class T>
class B
{
A<T>::Foo foo;
};
int main()
{
B<int> b;
return 0;
}test.cpp:11: error: type ‘A<T>’ is not derived from type ‘B<T>’
test.cpp:11: error: expected ‘;’ before ‘foo’
What the FUCK?