From f98e1385626d403566a61f107362bb3f64c2df6c Mon Sep 17 00:00:00 2001 From: Caner Candan Date: Tue, 31 Aug 2010 16:35:50 +0200 Subject: [PATCH] + eoEvalFuncCounterBounder.h: inherits of eoEvalFuncCounter in adding an exception throwing when a threshold of evaluation has been reached --- eo/src/eoEvalFuncCounterBounder.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eo/src/eoEvalFuncCounterBounder.h b/eo/src/eoEvalFuncCounterBounder.h index 7ba6c465c..d9d83c18a 100644 --- a/eo/src/eoEvalFuncCounterBounder.h +++ b/eo/src/eoEvalFuncCounterBounder.h @@ -34,18 +34,18 @@ public : using eoEvalFuncCounter< EOT >::value; - virtual void operator()(EOT& _eo) + virtual void operator()(EOT& eo) { - if (_eo.invalid()) + if (eo.invalid()) { value()++; - if (_threshold > 0 && value() >= threshold) + if (_threshold > 0 && value() >= _threshold) { - throw eoEvalFuncCounterBounderException(threshold); + throw eoEvalFuncCounterBounderException(_threshold); } - func(_eo); + func(eo); } }