The member function of a templated class cannot shed the class template parameter, which appears to be your intention. The compiler in fact treats the member function as a non-templated function within the specific instantiation of the templated class for a given class template argument. I. e., if you never instantiate the calss template, the compiler won't even notice, but if you do, the argument passed to the class template instantiation will be used and can't be a free template argument for member functions.
E. g. if you have the following code:
template <class t>
class myT {
T var;
public:
void hello() const;
};
void foo {
myT<int> x;
x.hello();
}
Then the function hello will be instantated as
myT<int>::hello()
.