Boost logo

Boost Users :

Subject: [Boost-users] [boost.asio] passing a boost::asio::io_service in to a constructure
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2011-02-18 14:25:59


Hi:
I'm new to working with asio, and have the following currently as two global variables:
boost::asio::io_service FolderMonitoringService;
    boost::asio::dir_monitor dm(FolderMonitoringService);
This works fine, but what I'd like to do is to make both variables private.
When I do that, I get an error c2061 syntax error on the second line, in visual studio 2010.
How can I pass a non-copyable class in to a constructor?
Cheers
Sean.



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