Automatic deleting functors, only if necessary.

This commit is contained in:
Benjamin Bouvier 2012-07-11 10:41:48 +02:00
commit 108c0bcf35
4 changed files with 60 additions and 20 deletions

View file

@ -27,7 +27,6 @@ namespace eo
~ProcessTaskParallelEval()
{
delete _wrapped;
}
};
@ -39,7 +38,6 @@ namespace eo
ParallelEvalStore(
eoUF<EOT&, void> & _proc,
int _masterRank,
// long _maxTime = 0,
int _packetSize = 1
) :
ParallelApplyStore< EOT >( _proc, *( new std::vector<EOT> ), _masterRank, _packetSize )