Boost logo

Boost :

Subject: Re: [boost] [review] The review of Boost.DoubleEnded starts today: September 21 - September 30
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2017-09-28 17:36:58


Den 28-09-2017 kl. 14:26 skrev degski via Boost:
> On 28 September 2017 at 15:02, Thorsten Ottosen via Boost <
> boost_at_[hidden]> wrote:
>
>> I'm talking about reading the actual code and having that code being
>> self-documenting wrt. the size of the segment.

> de::batch_deque<int, de::bytes_per_segment<512>> does (due to possible
> alignment issues) still not give you the number of elements and the other
> way around de::batch_deque<int, de::elements_per_segment<512>> does not
> give you the segment size, for the same reason.

Well, surely the latter gives you the actual number of elements in a
full segment?!? If you want to control that number, why should you care
about the bytes and vice versa?

-T


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