
29 Mar
2007
29 Mar
'07
12:49 p.m.
David Abrahams wrote:
Yeah, why struggle? This problem looks tailor-made for filter_view.
Skipping over the struggling comment (it's not like I'm deliberately choosing it), what makes filter_view a better choice? With both implementations, doesn't eraseVal::type yield a new sequence? If filter_view<Seq, Pred> is always better than copy_if<Seq, Pred>, why do we need both? Scott