Print on solution() =>pure virtual

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2206 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
boufaras 2011-04-13 13:13:35 +00:00
commit f126e427bc

View file

@ -62,11 +62,9 @@ public:
*@param _size The neighborhood size.
*/
moCudaVector(unsigned _size) {
moCudaVector(unsigned _size): N (_size){
N = _size;
vect = new ElemType[_size];
vect = new ElemType[N];
}
@ -154,15 +152,7 @@ public:
* Print the solution
*/
virtual void printOn(std::ostream& os) const {
EO<Fitness>::printOn(os);
os << ' ';
os << N << ' ';
unsigned int i;
for (i = 0; i < N; i++)
os << vect[i] << ' ';
}
virtual void printOn(std::ostream& os) const=0;
protected: