|
Boost Users : |
Subject: Re: [Boost-users] [boost.asio] issues with io_service.run
From: Michael Caisse (boost_at_[hidden])
Date: 2011-02-20 19:56:28
On 02/20/2011 04:31 PM, Sean Farrow wrote:
> 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.
>
>
Please don't top-post: <http://www.boost.org/community/policy.html#quoting>
A typedef is sort of like giving the type an alias you can use later. If
you want to instantiate the type you need to do something like:
FolderMonitoringService folder_service;
boost::asio::dir_monitor dm(folder_service);
...
...
folder_service.run();
The following slides and video from BoostCon'10 might be helpful if you
are just starting with ASIO.
slides: <http://www.objectmodelingdesigns.com/boostcon10/>
video: <http://boostcon.blip.tv/file/4171562/>
michael
-- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com
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