
19 Feb
2011
19 Feb
'11
4:06 p.m.
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?
c2061 is unrelated to non-copyable problem: http://msdn.microsoft.com/en-us/library/yha416c7(v=VS.100).aspx