Why this doesn't work? (For hell's sake!)
template<class T>
class A
{
typedef typename T::value_type value_type;
public:
A();
};
I'm getting following error:
Error 1 error C2825: 'T': must be a class or namespace when followed by '::
But T is a class, I've just specified that didn't I? So what's the problem?
Thanks.