removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary
This commit is contained in:
parent
89a99dab17
commit
6441ea1ec3
3 changed files with 5 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ typedef eoBit<double> Indi ; // A bitstring with fitness double
|
|||
|
||||
#include "binary_value.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void main_function(int argc, char **argv) {
|
||||
|
||||
// Some parameters
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ typedef eoBit<double> Indi; // A bitstring with fitness double
|
|||
|
||||
#include "binary_value.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void main_function(int argc, char **argv) {
|
||||
|
||||
eoEvalFuncPtr <Indi, double, const vector <bool> & > eval (binary_value) ;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
@param _chrom A binary chromosome
|
||||
*/
|
||||
// INIT
|
||||
double binary_value(const vector<bool>& _chrom)
|
||||
double binary_value(const std::vector<bool>& _chrom)
|
||||
{
|
||||
double sum = 0;
|
||||
for (unsigned i = 0; i < _chrom.size(); i++)
|
||||
|
|
|
|||
Reference in a new issue