diff --git a/eo/src/eoCounter.h b/eo/src/eoCounter.h index ea82d324..e9b161c3 100644 --- a/eo/src/eoCounter.h +++ b/eo/src/eoCounter.h @@ -43,7 +43,7 @@ class eoProcedureCounter : public Procedure, public eoValueParam public: eoProcedureCounter(Procedure& _proc, std::string _name = "proc_counter") - : proc(_proc), eoValueParam(0, _name) {} + : eoValueParam(0, _name), proc(_proc) {} /** Calls the embedded function and increments the counter @@ -96,7 +96,7 @@ class eoUnaryFunctorCounter : public UnaryFunctor, public eoValueParam(0, _name) {} + : eoValueParam(0, _name), func(_func) {} /** Calls the embedded function and increments the counter @@ -143,7 +143,7 @@ class eoBinaryFunctorCounter : public BinaryFunctor, public eoValueParam(0, _name) {} + : eoValueParam(0, _name), func(_func) {} /** Calls the embedded function and increments the counter diff --git a/eo/src/eoEvalFunc.h b/eo/src/eoEvalFunc.h index 41dae963..0dde11e1 100644 --- a/eo/src/eoEvalFunc.h +++ b/eo/src/eoEvalFunc.h @@ -54,7 +54,7 @@ template class eoEvalFuncCounter : public eoEvalFunc, public eoV { public : eoEvalFuncCounter(eoEvalFunc& _func, std::string _name = "eval_counter") - : func(_func), eoValueParam(0, _name) {} + : eoValueParam(0, _name), func(_func) {} void operator()(EOT& _eo) { diff --git a/eo/src/utils/eoFileMonitor.h b/eo/src/utils/eoFileMonitor.h index 99b4e7fa..3bc4239e 100644 --- a/eo/src/utils/eoFileMonitor.h +++ b/eo/src/utils/eoFileMonitor.h @@ -47,8 +47,8 @@ public : virtual void printHeader(std::ostream& os); private : - std::string delim; std::string filename; + std::string delim; }; #endif diff --git a/eo/src/utils/eoStat.h b/eo/src/utils/eoStat.h index 845fad8a..a78a5eea 100644 --- a/eo/src/utils/eoStat.h +++ b/eo/src/utils/eoStat.h @@ -109,7 +109,7 @@ class eoNthElementFitnessStat : public eoStat public : typedef typename EOT::Fitness Fitness; - eoNthElementFitnessStat(int _which, std::string _description = "nth element fitness") : which(_which), eoStat(Fitness(), _description) {} + eoNthElementFitnessStat(int _which, std::string _description = "nth element fitness") : eoStat(Fitness(), _description), which(_which) {} virtual void operator()(const eoPop& _pop) {