From b0844ae27b6ad4a3c51403ced3d0a5ac223e9cf6 Mon Sep 17 00:00:00 2001 From: Caner Candan Date: Thu, 24 Mar 2011 12:52:27 +0100 Subject: [PATCH] * switched eoGenOp::apply method from protected to public in order to be visible from eoSequentialOp --- eo/src/eoGenOp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eo/src/eoGenOp.h b/eo/src/eoGenOp.h index 86d4ebbda..c304ec641 100644 --- a/eo/src/eoGenOp.h +++ b/eo/src/eoGenOp.h @@ -66,17 +66,17 @@ class eoGenOp : public eoOp, public eoUF &, void> /** Max production is used to reserve space for all elements that are used by the operator, not setting it properly can result in a crash */ - virtual unsigned max_production(void) = 0; + virtual unsigned max_production(void) = 0; + + virtual std::string className() const = 0; - virtual std::string className() const = 0; void operator()(eoPopulator& _pop) { - _pop.reserve(max_production()); - apply(_pop); + _pop.reserve( max_production() ); + apply(_pop); } - - protected : + //protected : /** the function that will do the work */ virtual void apply(eoPopulator& _pop) = 0;