
21 Feb
2011
21 Feb
'11
12:02 a.m.
typedef boost::asio::io_service FolderMonitoringService;
I can pass this to a constructor requiring an io_service as follows:
boost::asio::dir_monitor dm(FolderMonitoringService);
You should pass an instance, not a type name.
however when I try to do:
FolderMonitoringService.run();
You should call run() member-function on an instance, not on a type name.