Boost logo

Boost :

Subject: Re: [boost] Formal Review Request: mp11
From: Bjorn Reese (breese_at_[hidden])
Date: 2017-03-18 14:00:38


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk