Boost logo

Boost :

Subject: Re: [boost] [MPL][vector] Is there interest in mpl::vector using variadic templates?
From: Peter Dimov (lists_at_[hidden])
Date: 2017-03-02 17:27:04


Larry Evans wrote:

> One problem with the above cppljevans mpl is there's no at.hpp.
> Instead, the non-variadic boost/mpl/at.hpp was used.
> The reason no variadic at was created was because, AFAICT, there was no
> non-recursive method for picking the I-th element from T... , and, IIUC,
> recursive templates cause compile-time slow downs.

Have you read

http://pdimov.com/cpp2/simple_cxx11_metaprogramming_2.html

?

Search for mp_at.


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