Boost logo

Boost :

Subject: Re: [boost] [Range] Confusing result of iterator_range::size()
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-11-03 08:16:53


On Thu, Nov 3, 2011 at 1:08 PM, Thorsten Ottosen
<thorsten.ottosen_at_[hidden]> wrote:
>>> Well, it used to return an unsigned type. It was then changed because
>>
>> What unsigned type?
>
> either size_t or something like make_unsigned<>::type.

Both sound better than the current solution.

>>> iterator traits have no notion of unsigned types.
>>
>>> And , AFAICR, there was a discussion about this on the list, convincing
>>> me
>>> that using difference_type was the right thing to do.
>>
>> AFAIK the conclusion was the opposite: use make_unsigned.
>
> If you can find it, I might believe you. It should be in the archieves from
> some years ago.

I meant the discussion last month.
Didn't know it was discussed before. Do you have any idea in what year/month?

-- 
Olaf

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