removed comment in PyEO.cpp

This commit is contained in:
maartenkeijzer 2003-03-19 08:53:59 +00:00
commit 380d4eca0b
2 changed files with 1 additions and 23 deletions

View file

@ -30,7 +30,7 @@ CPPFLAGS = -Wall -O2 #-g #-O2
LDFLAGS =
COMPILE = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
LINK = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
INC=-I/usr/include/python2.2 -I.. -ftemplate-depth-50 #-I/usr/include/stlport
INC=-I/usr/include/python2.2 -I/home/mkeijzer/src/boost -I.. -ftemplate-depth-50 #-I/usr/include/stlport
OBJECTS=eoFunctorStore.o PyEO.o abstract1.o algos.o \
random_numbers.o geneticOps.o selectOne.o continuators.o\

View file

@ -27,25 +27,6 @@
#include <strstream>
#endif
typedef eoPop<PyEO>::iterator PopIt;
typedef eoPop<PyEO>::const_iterator cPopIt;
PopIt operator+(PopIt it, size_t a)
{
return it + ptrdiff_t(a);
}
cPopIt operator+(cPopIt it, size_t a)
{
return it + ptrdiff_t(a);
}
PopIt operator-(PopIt it, size_t a)
{
return it - ptrdiff_t(a);
}
cPopIt operator-(cPopIt it, size_t a)
{
return it - ptrdiff_t(a);
}
using namespace std;
//using namespace boost::python;
@ -153,11 +134,8 @@ PyEO& pop_getitem(eoPop<PyEO>& pop, boost::python::object key)
if (static_cast<unsigned>(i) >= pop.size())
{
cerr << "throwing" << endl;
throw index_error("Index out of bounds");
}
cerr << "indexing " << i << endl;
return pop[i];
}