Original Post
I am trying to do the following: But I get a compilation error that the term does not evaluate to a 0 variables function. How is it supposed to be done? Thanks in advance. [Edited by - The C modest god on September 25, 2006 2:59:14 AM]
template <class T>
class Something {
public:
Somthing() { this->Ptr = Somthing<T>::Method; };
T * (Somthing::*Ptr)();
T var;
T * Method() {return &this->var;};
T * foo ()
{
return this->Ptr(); //<= Compilation error
};
}