From 89a99dab17def7fdd612d7ac69981ffd05933ef2 Mon Sep 17 00:00:00 2001 From: okoenig Date: Thu, 27 Feb 2003 19:18:07 +0000 Subject: [PATCH] removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary. --- eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp | 2 ++ eo/tutorial/ParadisEO/Lesson3/Makefile | 1 + eo/tutorial/ParadisEO/Lesson3/binary_value.h | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp b/eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp index 41640b35..42cb4a95 100644 --- a/eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp +++ b/eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp @@ -9,6 +9,8 @@ typedef eoBit Indi; #include "binary_value.h" +using namespace std; + void main_function(int argc, char **argv) { diff --git a/eo/tutorial/ParadisEO/Lesson3/Makefile b/eo/tutorial/ParadisEO/Lesson3/Makefile index 2e5c0fdf..3b255b38 100644 --- a/eo/tutorial/ParadisEO/Lesson3/Makefile +++ b/eo/tutorial/ParadisEO/Lesson3/Makefile @@ -1,3 +1,4 @@ +.SUFFIXES: .cpp .cpp: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.1\" -I. -I../../../src -Wall -g -o $@ $*.cpp ../../../src/utils/libeoutils.a ../../../src/libeo.a .cpp.o: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.1\" -I. -I../../../src -Wall -g -c $*.cpp diff --git a/eo/tutorial/ParadisEO/Lesson3/binary_value.h b/eo/tutorial/ParadisEO/Lesson3/binary_value.h index a31c0864..f2f5d6ca 100644 --- a/eo/tutorial/ParadisEO/Lesson3/binary_value.h +++ b/eo/tutorial/ParadisEO/Lesson3/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++)