J
Jee
Hi,
I want to declare a static template member function inside a non-template class, but MS C compiler always
complains syntax error. I wonder if it is not allowed to do that? I tried SUN Forte compiler, it errored also.
My class is like,
class a{
public:
static template<class T> vector<T> getIntersection(vector<T>&, vector<T>&);
};
Could you point me what's wrong here?
I want to declare a static template member function inside a non-template class, but MS C compiler always
complains syntax error. I wonder if it is not allowed to do that? I tried SUN Forte compiler, it errored also.
My class is like,
class a{
public:
static template<class T> vector<T> getIntersection(vector<T>&, vector<T>&);
};
Could you point me what's wrong here?