Changed construction order as gcc was warning
This commit is contained in:
parent
fd8a2529a5
commit
f7c157c154
4 changed files with 6 additions and 6 deletions
|
|
@ -43,7 +43,7 @@ class eoProcedureCounter : public Procedure, public eoValueParam<unsigned long>
|
|||
public:
|
||||
|
||||
eoProcedureCounter(Procedure& _proc, std::string _name = "proc_counter")
|
||||
: proc(_proc), eoValueParam<unsigned long>(0, _name) {}
|
||||
: eoValueParam<unsigned long>(0, _name), proc(_proc) {}
|
||||
|
||||
/** Calls the embedded function and increments the counter
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ class eoUnaryFunctorCounter : public UnaryFunctor, public eoValueParam<unsigned
|
|||
{
|
||||
public:
|
||||
eoUnaryFunctorCounter(UnaryFunctor& _func, std::string _name = "uf_counter")
|
||||
: func(_func), eoValueParam<unsigned long>(0, _name) {}
|
||||
: eoValueParam<unsigned long>(0, _name), func(_func) {}
|
||||
|
||||
/** Calls the embedded function and increments the counter
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ class eoBinaryFunctorCounter : public BinaryFunctor, public eoValueParam<unsigne
|
|||
{
|
||||
public:
|
||||
eoBinaryFunctorCounter(BinaryFunctor& _func, std::string _name = "proc_counter")
|
||||
: func(_func), eoValueParam<unsigned long>(0, _name) {}
|
||||
: eoValueParam<unsigned long>(0, _name), func(_func) {}
|
||||
|
||||
/** Calls the embedded function and increments the counter
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ template<class EOT> class eoEvalFuncCounter : public eoEvalFunc<EOT>, public eoV
|
|||
{
|
||||
public :
|
||||
eoEvalFuncCounter(eoEvalFunc<EOT>& _func, std::string _name = "eval_counter")
|
||||
: func(_func), eoValueParam<unsigned long>(0, _name) {}
|
||||
: eoValueParam<unsigned long>(0, _name), func(_func) {}
|
||||
|
||||
void operator()(EOT& _eo)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ public :
|
|||
virtual void printHeader(std::ostream& os);
|
||||
|
||||
private :
|
||||
std::string delim;
|
||||
std::string filename;
|
||||
std::string delim;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ class eoNthElementFitnessStat : public eoStat<EOT, typename EOT::Fitness >
|
|||
public :
|
||||
typedef typename EOT::Fitness Fitness;
|
||||
|
||||
eoNthElementFitnessStat(int _which, std::string _description = "nth element fitness") : which(_which), eoStat<EOT, Fitness>(Fitness(), _description) {}
|
||||
eoNthElementFitnessStat(int _which, std::string _description = "nth element fitness") : eoStat<EOT, Fitness>(Fitness(), _description), which(_which) {}
|
||||
|
||||
virtual void operator()(const eoPop<EOT>& _pop)
|
||||
{
|
||||
|
|
|
|||
Reference in a new issue