G
Glen Able
Not sure if this a dumb syntax error, or if there some more subtle reason
why this doesn't work:
template <class ObjT> class Foo
{
typedef bool (ObjT::*TestFunction)();
public:
void Bar( ObjT* pObj,
TestFunction fn)
{
if (pObj->*fn()) // ERROR HERE : "term does not evaluate to a
function"
{
}
}
};
Any thoughts?
ta,
G.A.
why this doesn't work:
template <class ObjT> class Foo
{
typedef bool (ObjT::*TestFunction)();
public:
void Bar( ObjT* pObj,
TestFunction fn)
{
if (pObj->*fn()) // ERROR HERE : "term does not evaluate to a
function"
{
}
}
};
Any thoughts?
ta,
G.A.