- Code: Select all
DirectoryWatcher dw (string ("dir"));
Then I have a problem adding a delagate to event itemAdded. I want to use a method onAdd of the object listener, that instantiates class Controller
- Code: Select all
class Controller {
public:
void onAdd (const void*, DirectoryWatcher::DirectoryEvent&) {
cout << "Event" << endl;
}
};
.....
Controller listener;
dw.itemAdde += delegate (&listener, &Controller::onAdd);
And here I receive compilation error. What do I do wrong and what and how must I do?
All required headers were included.
Poco library 1.45, Xubuntu 12.04, gcc 4.6.
Thanks.





