From 82ce471aef216978ec83c292e55965dcea3234a8 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Tue, 11 Jun 2013 13:28:51 +0200 Subject: [PATCH] Add a warning in eoDualFitness comments --- eo/src/eoDualFitness.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eo/src/eoDualFitness.h b/eo/src/eoDualFitness.h index 4d8831799..59d6f6d05 100644 --- a/eo/src/eoDualFitness.h +++ b/eo/src/eoDualFitness.h @@ -85,8 +85,9 @@ public: _is_feasible(false) {} - //! Empty initialization + //! Initialization with only the value, the fitness will be unfeasible. /*! + * WARNING: this is what is used when you initialize a new fitness from a double. * Unfeasible by default */ template @@ -137,7 +138,7 @@ public: } //! Copy operator from a std::pair - eoDualFitness& operator=(const std::pair& v) + eoDualFitness& operator=( const std::pair& v ) { this->_value = v.first; this->_is_feasible = v.second; @@ -146,7 +147,7 @@ public: //! Copy operator from another eoDualFitness template - eoDualFitness & operator=(const eoDualFitness& other ) + eoDualFitness & operator=( const eoDualFitness& other ) { if (this != &other) { this->_value = other._value;