
18 Mar
2017
18 Mar
'17
2 p.m.
On 03/18/2017 02:33 PM, Peter Dimov via Boost wrote:
Bjorn Reese wrote:
Most algorithms take the typelist as the first argument, but others do not, e.g. mp_transform<F, L...>. If possible, I would like to see all algorithms take typelist as the first argument.
It's not possible for L... to be first. Note the ellipsis.
Notice that I removed them :) The documentation states that "data structures are lists of the form L<T...>" so why is L... needed in mp_transform? I just the type-swapping trick with mp_list and std::tuple, and both worked fine.