Boost logo

Boost-Build :

Subject: Re: [Boost-build] [range] size works only with random access ranges
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-08-07 12:26:08

Le 04/08/2010 11:57, Felipe Magno de Almeida a écrit :
> Hello,
> Why the size primitive only works with random access range?
> Shouldn't it be implemented generically?

This is the wrong group, but the reason it is like this is by design.
Use boost::difference for a version that works for all range types.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at