Add a warning in eoDualFitness comments
This commit is contained in:
parent
685fc80c81
commit
8a2ba6a56d
1 changed files with 4 additions and 3 deletions
|
|
@ -85,8 +85,9 @@ public:
|
||||||
_is_feasible(false)
|
_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
|
* Unfeasible by default
|
||||||
*/
|
*/
|
||||||
template<class T>
|
template<class T>
|
||||||
|
|
@ -137,7 +138,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Copy operator from a std::pair
|
//! Copy operator from a std::pair
|
||||||
eoDualFitness& operator=(const std::pair<BaseType,bool>& v)
|
eoDualFitness& operator=( const std::pair<BaseType, bool>& v )
|
||||||
{
|
{
|
||||||
this->_value = v.first;
|
this->_value = v.first;
|
||||||
this->_is_feasible = v.second;
|
this->_is_feasible = v.second;
|
||||||
|
|
@ -146,7 +147,7 @@ public:
|
||||||
|
|
||||||
//! Copy operator from another eoDualFitness
|
//! Copy operator from another eoDualFitness
|
||||||
template <class F, class Cmp>
|
template <class F, class Cmp>
|
||||||
eoDualFitness<BaseType,Compare> & operator=(const eoDualFitness<BaseType, Compare>& other )
|
eoDualFitness<BaseType,Compare> & operator=( const eoDualFitness<BaseType, Compare>& other )
|
||||||
{
|
{
|
||||||
if (this != &other) {
|
if (this != &other) {
|
||||||
this->_value = other._value;
|
this->_value = other._value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue