Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.asio] issues with io_service.run
From: Michael Caisse (boost_at_[hidden])
Date: 2011-02-20 17:20:46


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

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