
23 Nov
2008
23 Nov
'08
6:57 a.m.
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