On Tue, Dec 17, 2013 at 6:06 AM, Alex Rousskov <rouss...@measurement-factory.com> wrote: > On 12/16/2013 03:36 PM, Alex Rousskov wrote: >>> Rewrite the += operator loop to simply >>> this->add() every character in the src set. Use std::for_each or another >>> <algorithm> for that if possible. > >> I think the above is still valid though. > > but I cannot find a suitable algorithm. If you cannot either, just use > add() calls in an explicit loop.
std::copy_if is perfect for the job; using that. -- /kinkie