removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary.
This commit is contained in:
parent
4052187a6c
commit
89a99dab17
3 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ typedef eoBit<double> Indi;
|
||||||
|
|
||||||
#include "binary_value.h"
|
#include "binary_value.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
void main_function(int argc, char **argv)
|
void main_function(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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: ; 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
|
.cpp.o: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.1\" -I. -I../../../src -Wall -g -c $*.cpp
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
@param _chrom A binary chromosome
|
@param _chrom A binary chromosome
|
||||||
*/
|
*/
|
||||||
// INIT
|
// INIT
|
||||||
double binary_value(const vector<bool>& _chrom)
|
double binary_value(const std::vector<bool>& _chrom)
|
||||||
{
|
{
|
||||||
double sum = 0;
|
double sum = 0;
|
||||||
for (unsigned i = 0; i < _chrom.size(); i++)
|
for (unsigned i = 0; i < _chrom.size(); i++)
|
||||||
|
|
|
||||||
Reference in a new issue