Fine tuning of printOn: if fitness is invalid, now prints it
This commit is contained in:
parent
08abf46576
commit
e3e4a0b719
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
//@}
|
||||
|
|
|
|||
Reference in a new issue