hxx Posted April 3, 2004 Posted April 3, 2004 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.