[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IMP-dev] SingletonFunctor



Daniel -
why is it better using:
IMP_NEW(core::Transform, tsm,(t));
for(Particles::iterator it = ps.begin(); it != ps.end();it++) {
tsm->apply(*it);
}
instead of:
std::for_each(ps.begin(),ps.end(),SingletonFunctor(new IMP::core::Transform(t)));

I saw you changed it in domino .

thanks,
Keren.