Boost logo

Boost :

Subject: Re: [boost] [Review] Reminder: Boost.RangeEx review is going on
From: Alexander (gutenev_at_[hidden])
Date: 2009-03-02 14:38:00


 vicente.botet wrote:

> Should we have two overloadings for count?

Would it harm to have more than one overload ?
In template programming symmetry is useful, when there are no special cases.
If for_each, accumulate, and count need two overload, why make an exception
for count.
It may be hard to imagine equals operator which do not take constant
operands. But in some cases, like maintaining legacy code or writing COM
(component object model) code you just may have to give up const correctness
and have most of veriables non-constant.


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