vc question

hxx

Newcomer
Joined
Mar 9, 2004
Messages
11
Is template can't use in class?

------------------------
template<typename T>
void abc(T x)
{
}
------------------------

this right
but

------------------------
template<typename T>
class aa
{
void abc(T x)
};
------------------------


this is error,and it says identifier 'T'

why?
 
Back
Top