Tipos "herdados" usando CRTP e typedef

O código a seguir não compila. Recebo uma mensagem de erro: erro C2039: 'Asub': não é membro de 'C'

Alguém pode me ajudar a entender isso?

Tentei o compilador VS2008 e 2010.

template <class T>
class B
{
    typedef int Asub;

public:
 void DoSomething(typename T::Asub it)
 {

 }
};

class C : public B<C>
{
public:
 typedef int Asub;

};

class A
{
public:
 typedef int Asub;

};


int _tmain(int argc, _TCHAR* argv[])
{
 C theThing;
 theThing.DoSomething(C::Asub());

 return 0;
}

questionAnswers(1)

yourAnswerToTheQuestion