Boost logo

Boost :

Subject: Re: [boost] [Range] Confusing result of iterator_range::size()
From: michi7x7 (michi_at_[hidden])
Date: 2011-11-07 09:30:01


> Well, iterator_range<T> is not a container. Could you elaborate on your
> view?

That's why it probably shouldn't provide size() at all. distance() might
have been a better option for the name.

As long as it's name is size() it should return size_t IMHO.



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