Removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary.
This commit is contained in:
parent
6441ea1ec3
commit
86fa476c67
263 changed files with 2009 additions and 1976 deletions
|
|
@ -31,7 +31,7 @@ class eoMyEval : public eoEvalFunc<EOT>
|
|||
|
||||
void operator()(EOT& _eo)
|
||||
{
|
||||
_eo.fitness(*max_element(_eo.begin(), _eo.end()));
|
||||
_eo.fitness(*std::max_element(_eo.begin(), _eo.end()));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ class Xover : public eoBinOp<EOT>
|
|||
bool operator()(EOT& _eo, const EOT& _eo2)
|
||||
{
|
||||
unsigned point = rng.random(_eo.size());
|
||||
copy(_eo2.begin() + point, _eo2.end(), _eo.begin() + point);
|
||||
std::copy(_eo2.begin() + point, _eo2.end(), _eo.begin() + point);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Reference in a new issue