MSVC 2008 won't compile this code:
template <class Derived>
struct B
{
typename Derived::type t;
};
struct D : B<D>
{
typedef int type;
};
void main()
{
D d;
}
The error I get is "error C2039: 'type' : is not a member of 'D'". Any ideas?