
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

InputType NewInput =InputType(Port, cl, boost::make_sharedboost::asio::io_service , boost::make_sharedboost::thread(boost::bind(&boost::asio::io_service::run, io.get())));
Please, read some documentation, before using a library - it would save you a lot of time and effort... http://www.boost.org/doc/libs/1_46_1/libs/smart_ptr/make_shared.html

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.
participants (3)
-
Christopher Jefferson
-
Igor R
-
Sean Farrow