Boost logo

Boost :

Subject: Re: [boost] [TypeSort] Automatic type sorting
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2015-03-25 08:52:38


On 22/03/2015 07:52, Louis Dionne wrote:
> Peter Dimov <lists <at> pdimov.com> writes:
>
>>
>> Louis Dionne wrote:
>>> Eric Niebler <eniebler <at> boost.org> writes:
>> ...
>>>> FWIW, these indices don't seem all that useful to me. What exactly was
>>>> the desired behavior?
>>>
>>> No idea
>>
>> The desired behavior was for indexing the sorted tuple to work like indexing
>> the original tuple. That is, given tuple<char[4], char[2], char[1], char[5],
>> char[3]>, you were supposed to produce another tuple for which get<0> still
>> returns char[4], even though the first element is physically char[1].
>
> Oh, yes of course. Then I think the original code did not do the
> right thing, or I made a mistake while translating it to Hana.

What's wrong with the original code?


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