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
|
|
@ -33,9 +33,9 @@ int main_function(int argc, char **argv)
|
|||
eoFirstIsBestInit < Indi > localInit;
|
||||
eoPop < Indi > pop;
|
||||
pop.append (POP_SIZE, random);
|
||||
apply(eval, pop);
|
||||
apply < Indi > (veloRandom, pop);
|
||||
apply < Indi > (localInit, pop);
|
||||
::apply(eval, pop);
|
||||
::apply < Indi > (veloRandom, pop);
|
||||
::apply < Indi > (localInit, pop);
|
||||
eoRingTopology<Indi> topology(NEIGHBORHOOD_SIZE);
|
||||
topology.setup(pop);
|
||||
std::cout<<"\n\n\nPopulation :\n\n"<<pop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue