Boost logo

Boost :

Subject: Re: [boost] Efficient tuple implementation
From: Larry Evans (cppljevans_at_[hidden])
Date: 2014-06-12 13:59:36

On 06/06/14 21:56, Agustín K-ballo Bergé wrote:
> On 06/06/2014 11:18 p.m., Louis Dionne wrote:
>> Hi,
>> I recently discovered (or maybe not) a neat trick to implement a
>> tuple-like
>> container. The technique has a couple of drawbacks which I will
>> explain later.
>> For a real example, you can see my list implementation in Boost.Hana
>> at [1].
>> The idea is to use the capture of the lambda as a fast compiler-generated
>> struct with the desired members. By passing a function to that lambda, we
>> get an access to the unpacked representation of those members and we can
>> then apply any fast algorithm on parameter packs.
> We have experimented with lambdas in Spirit.X3 as a way to drastically
> reduce compile times (although not in the form of tuples),

Are you referring to the make_opaque mentioned here:

or something else? If something else, could we have a peek at it


Boost list run by bdawes at, gregod at, cpdaniel at, john at