Hi there,
I want to pass a Functor interface as a function argument :
Now a small voice tells me that the operator() cannot be virtual, and therefore a function "apply" should be implemented. But when i try it compiles and runs.Code:class IFoo
{
public:
virtual ~IFoo(){}
virtual bool operator()() const = 0;
}
class Foo : public IFoo
{
public:
bool operator()() const;
}
Does anyone know issues about this, or should i just ignore that small voice..
Thanks!
Mark