Boost logo

Boost :

Subject: Re: [boost] difference_type size()?
From: andrey.semashev_at_[hidden]
Date: 2011-10-19 15:41:16


On Wednesday, October 19, 2011 21:34:58 Olaf van der Spek wrote:
> On Wed, Oct 19, 2011 at 9:09 PM, <andrey.semashev_at_[hidden]> wrote:
> > So bidirectional iterators, for instance, may denote a valid range that
> > exceeds difference_type capacity. This is actually a little caveat in
> > the
> > Standard.
>
> Is the type of std::distance unspecified then?

It's specified as difference_type. However the returned value of std::distance
for this case is not covered by the Standard, AFAICT.


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