I need to convert a boost::tuple to the corresponding boost::fusion::tuple. I have figured out the corresponding type.
But I expect there is an inbuilt function to do this. I really don't want to reinvent such things. I have searched in the boost fusion documentation but didn't find any.
c++14 version:
I am unaware of a built-in version.
Add trailing
-> decltype(boost::fusion::make_tuple( get<Is>(std::forward<T>(in))... ))in c++11. You also needmake_index_sequence, which probably has a boost equivalent.Live example.