From 6441ea1ec3e24816b961c2396ab21afd21a5e206 Mon Sep 17 00:00:00 2001 From: okoenig Date: Thu, 27 Feb 2003 19:18:53 +0000 Subject: [PATCH] removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary --- eo/tutorial/ParadisEO/Lesson2/MasterDistEvalBitEA.cpp | 2 ++ eo/tutorial/ParadisEO/Lesson2/SlaveDistEvalBitEA.cpp | 2 ++ eo/tutorial/ParadisEO/Lesson2/binary_value.h | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/eo/tutorial/ParadisEO/Lesson2/MasterDistEvalBitEA.cpp b/eo/tutorial/ParadisEO/Lesson2/MasterDistEvalBitEA.cpp index b2b154ff..0d61b501 100644 --- a/eo/tutorial/ParadisEO/Lesson2/MasterDistEvalBitEA.cpp +++ b/eo/tutorial/ParadisEO/Lesson2/MasterDistEvalBitEA.cpp @@ -9,6 +9,8 @@ typedef eoBit Indi ; // A bitstring with fitness double #include "binary_value.h" +using namespace std; + void main_function(int argc, char **argv) { // Some parameters diff --git a/eo/tutorial/ParadisEO/Lesson2/SlaveDistEvalBitEA.cpp b/eo/tutorial/ParadisEO/Lesson2/SlaveDistEvalBitEA.cpp index 5194d789..c6cd8969 100644 --- a/eo/tutorial/ParadisEO/Lesson2/SlaveDistEvalBitEA.cpp +++ b/eo/tutorial/ParadisEO/Lesson2/SlaveDistEvalBitEA.cpp @@ -9,6 +9,8 @@ typedef eoBit Indi; // A bitstring with fitness double #include "binary_value.h" +using namespace std; + void main_function(int argc, char **argv) { eoEvalFuncPtr & > eval (binary_value) ; diff --git a/eo/tutorial/ParadisEO/Lesson2/binary_value.h b/eo/tutorial/ParadisEO/Lesson2/binary_value.h index a31c0864..f2f5d6ca 100644 --- a/eo/tutorial/ParadisEO/Lesson2/binary_value.h +++ b/eo/tutorial/ParadisEO/Lesson2/binary_value.h @@ -7,7 +7,7 @@ @param _chrom A binary chromosome */ // INIT -double binary_value(const vector& _chrom) +double binary_value(const std::vector& _chrom) { double sum = 0; for (unsigned i = 0; i < _chrom.size(); i++)