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 :
> 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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk