removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary

This commit is contained in:
okoenig 2003-02-27 19:18:53 +00:00
commit 6441ea1ec3
3 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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) ;

View file

@ -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++)