|
Boost : |
Subject: Re: [boost] Is Boost.Range broken?
From: David Abrahams (dave_at_[hidden])
Date: 2008-11-23 01:57:52
on Sat Nov 22 2008, Tomas Puverle <Tomas.Puverle-AT-morganstanley.com> wrote:
>> I agree that is_singular is evil.
>
> To be more precise, the new behaviour is evil. Previously it was fine, even
> though it wasn't very useful.
I disagree. Such a function doesn't make any sense and shouldn't exist.
You can't tell at runtime whether an iterator_range is singular for the
same reasons that you can't tell whether an iterator is singular. If
iterator_range didn't have any constructors that allowed you to pass
iterators, it would be a different matter.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk