
On 21 Mar 2011, at 21:59, Sean Farrow wrote:
Hi: Ok, having got to grips with fusion, and thought it was working. I now have an issue whereby when using make_shared, it is working in one case, and not in the other. I've got the following definition:P typedef boost::fusion::vector
boost::asio::io_service , boost::shared_ptrboost::thread > InputType; and when I use: InputType NewInput =InputType(Port, cl, boost::make_sharedboost::asio::io_service , boost::make_sharedboost::thread(boost::bind(&boost::asio::io_service::run, io.get())));
Assuming you have cut+pasted your code, you need () at the end, as make_shared is a function call.
boost::make_sharedboost::asio::io_service()
If that isn't your problem, a small ( ~ 20 lines, 10 if possible) program which compiles (except the one line you are having trouble with) showing your problem would be useful.