
21 Mar
2011
21 Mar
'11
1:02 p.m.
I’m in the process of using boost::fusion::vector, with the following definition:
typedef boost::fusion::vector
boost::asio::io_service, boost::shared_ptrboost::thread InputType;
I’m then constructing this using the following code:
PmStream* Port;
MIDIInputThread cl;
InputType NewInput =InputType(Port, cl, boost::make_sharedboost::asio::io_service, boost::make_sharedboost::thread(boost::bind(&boost::asio::io_service::run, io.get())));
What I’m wondering is is there a way to refer to a previously declared argument in this case, I’d like to refer to the shared pointer containing the boost::asio::io_service.
#include