
20 Feb
2011
20 Feb
'11
10:20 p.m.
On 02/20/2011 02:17 PM, Sean Farrow wrote:
Hi:
Ok, I’m trying to use boost::asio::io_service::run as follows.
At the top of a .hpp file I have:
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);
however when I try to do:
FolderMonitoringService.run();
You are trying to call a non-static method on the class. You need an instance of io_service. -- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com