
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