Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.asio] issues with io_service.run
From: Igor R (boost.lists_at_[hidden])
Date: 2011-02-20 19:02:30


> 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 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