From e3e4a0b719beab9e77f30c9497e7ea7a14298450 Mon Sep 17 00:00:00 2001 From: evomarc Date: Mon, 30 Oct 2000 14:51:57 +0000 Subject: [PATCH] Fine tuning of printOn: if fitness is invalid, now prints it --- eo/src/EO.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eo/src/EO.h b/eo/src/EO.h index 05e39491..fd807d0c 100644 --- a/eo/src/EO.h +++ b/eo/src/EO.h @@ -115,7 +115,10 @@ public: * @param _os A ostream. */ virtual void printOn(ostream& _os) const { - _os << repFitness << ' '; // trailing space to make reading in that much easier + if (invalid()) + _os << "INVALID "; + else + _os << repFitness << ' '; // trailing space to make reading in that much easier } //@}