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:
Johann Dreo 2020-04-28 15:56:14 +02:00
commit 24bc8edd6f
25 changed files with 125 additions and 125 deletions

View file

@ -44,7 +44,7 @@ public:
* modifies the parent
* @param _genotype The parent genotype (will be modified)
*/
bool operator()(GenotypeT & _genotype)
bool operator()(GenotypeT & /*_genotype*/)
{
bool isModified(true);
// START code for mutation of the _genotype object

View file

@ -46,7 +46,7 @@ public:
* @param _genotype1 The first parent
* @param _genotype2 The second parent
*/
bool operator()(GenotypeT& _genotype1, GenotypeT & _genotype2)
bool operator()(GenotypeT& /*_genotype1*/, GenotypeT & /*_genotype2*/)
{
bool oneAtLeastIsModified(true);
// START code for crossover of _genotype1 and _genotype2 objects

View file

@ -73,7 +73,7 @@
*/
template <class EOT>
eoGenOp<EOT> & do_make_op(eoParameterLoader& _parser, eoState& _state, eoInit<EOT>& _init)
eoGenOp<EOT> & do_make_op(eoParameterLoader& _parser, eoState& _state, eoInit<EOT>& /*_init*/)
{
// this is a temporary version, while Maarten codes the full tree-structured
// general operator input