|
Boost Users : |
Subject: Re: [Boost-users] [boost.asio] issues with io_service.run
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2011-02-20 19:31:44
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_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Igor R
Sent: 21 February 2011 00:03
To: boost-users_at_[hidden]
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_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net