Hacker News new | ask | show | jobs
by listeria 469 days ago
I'd normally agree with you, but in this case this function is meant to be used for vectorizable input so it doesn't really matter since it's using a random-access iterator, otherwise you should go with the usual std::count_if().

Then again, it doesn't hurt to be pedantic.

1 comments

It's not about being pedantic, it's about building the right habits. Building a habit of using x++ instead of ++x is suboptimal.