
20 Feb
2011
20 Feb
'11
5:02 p.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.