
Hi: Ok, I thought as I'd used typedef this was an instance. Could somebody given the code provided in the last message adapt this to show me what I should be doing? Thanks Sean. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Igor R Sent: 21 February 2011 00:03 To: boost-users@lists.boost.org Subject: Re: [Boost-users] [boost.asio] issues with io_service.run
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. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users