fix new warnings and escape apply namespace
- `std::apply` is part of C++17 and the compiler wants to use it because of ADL. Thus it is now necessary to escape it as `::apply`. - remove some `using namespace std` remaining in the sources. - fix simple warnings.
This commit is contained in:
parent
c95f5607d8
commit
24bc8edd6f
25 changed files with 125 additions and 125 deletions
|
|
@ -84,7 +84,7 @@ int main(int ac, char** av)
|
|||
eoPop< RealVec >& pop = do_make_pop(parser, state, *init);
|
||||
|
||||
// (2) First evaluation before starting the research algorithm
|
||||
apply(eval, pop);
|
||||
::apply(eval, pop);
|
||||
|
||||
// Prepare bounder class to set bounds of sampling.
|
||||
// This is used by edoSampler.
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ int main(int ac, char** av)
|
|||
eoPop< EOT >& pop = do_make_pop(parser, state, *init);
|
||||
|
||||
// (2) First evaluation before starting the research algorithm
|
||||
apply(eval, pop);
|
||||
::apply(eval, pop);
|
||||
|
||||
// Prepare bounder class to set bounds of sampling.
|
||||
// This is used by edoSampler.
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class edoDistribReset : public eoAlgoReset<typename D::EOType>
|
|||
_distrib(distrib)
|
||||
{ }
|
||||
|
||||
virtual void operator()( eoPop<EOType>& pop )
|
||||
virtual void operator()( eoPop<EOType>& /*pop*/ )
|
||||
{
|
||||
if(_has_dim) {
|
||||
_distrib.reset(_dim);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue