Change in do_make_checkpoint: it receives not just a parameter from the evaluation function, not the function itself!!
This commit is contained in:
parent
af8cd4b08b
commit
64fb5d2c45
1 changed files with 6 additions and 5 deletions
|
|
@ -82,15 +82,16 @@ bool testDirRes(std::string _dirName, bool _erase);
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* CHANGE (March 2008): now receiving an eoValueParam instead of an eoEvalFuncCounter. This function is just interested
|
||||
* in the value of the parameter calculated on the evaluation function, not in the actual function itself!!
|
||||
*/
|
||||
template <class EOT>
|
||||
|
||||
eoCheckPoint<EOT>& do_make_checkpoint(eoParser& _parser, eoState& _state, eoEvalFuncCounter<EOT>& _eval, eoContinue<EOT>& _continue)
|
||||
|
||||
eoCheckPoint<EOT>& do_make_checkpoint(eoParser& _parser, eoState& _state, eoValueParam<unsigned long>& _eval, eoContinue<EOT>& _continue)
|
||||
{
|
||||
|
||||
// first, create a checkpoint from the eoContinue
|
||||
|
||||
eoCheckPoint<EOT> *checkpoint = new eoCheckPoint<EOT>(_continue);
|
||||
|
||||
_state.storeFunctor(checkpoint);
|
||||
|
|
|
|||
Reference in a new issue