Can anyone tell how to fix the compile error for the program below?
#include "iostream.h"
#include <vector>
#include <algorithm>
#include <functional>
#include <list>
using namespace std;
class Widget
{
};
class B
{
public:
bool IsInteresting(Widget) {return true;}
};
class C
{
public:
void Find(B b)
{
list<Widget>::iterator i = find_if(m_widgets.begin(),m_widgets.end(),
mem_fun_ref((*this).IsInteresting));
}
private:
list<Widget>m_widgets;
bool IsInteresting(const Widget widget) {return true;}
};
void main(void)
{};