Some small changes concerning flags and warnings

This commit is contained in:
maartenkeijzer 2004-12-23 15:40:44 +00:00
commit 0ad2d5ad2b
2 changed files with 11 additions and 7 deletions

View file

@ -51,7 +51,6 @@ public:
/** Clears the map */ /** Clears the map */
void clear() { void clear() {
std::vector<std::vector<bool> >::clear(); std::vector<std::vector<bool> >::clear();
#warning Is this correct? Was: "fitnesses.clear()"
fitness.clear(); fitness.clear();
} }

View file

@ -41,9 +41,12 @@
template <class EOT> template <class EOT>
class eoNDSorting : public eoPerf2WorthCached<EOT, double> class eoNDSorting : public eoPerf2WorthCached<EOT, double>
{ {
public: public :
using eoNDSorting< EOT >::value; using eoNDSorting< EOT >::value;
eoNDSorting(bool nasty_flag_ = false) : nasty_declone_flag_that_only_is_implemented_for_two_objectives(nasty_flag_)
{}
eoNDSorting() eoNDSorting()
: nasty_declone_flag_that_only_is_implemented_for_two_objectives(false) : nasty_declone_flag_that_only_is_implemented_for_two_objectives(false)
@ -376,7 +379,7 @@ template <class EOT>
class eoNDSorting_I : public eoNDSorting<EOT> class eoNDSorting_I : public eoNDSorting<EOT>
{ {
public : public :
eoNDSorting_I(double _nicheSize) : eoNDSorting<EOT>(), nicheSize(_nicheSize) {} eoNDSorting_I(double _nicheSize, bool nasty_flag_ = false) : eoNDSorting<EOT>(nasty_flag_), nicheSize(_nicheSize) {}
std::vector<double> niche_penalty(const std::vector<unsigned>& current_front, const eoPop<EOT>& _pop) std::vector<double> niche_penalty(const std::vector<unsigned>& current_front, const eoPop<EOT>& _pop)
{ {
@ -429,9 +432,11 @@ public :
template <class EOT> template <class EOT>
class eoNDSorting_II : public eoNDSorting<EOT> class eoNDSorting_II : public eoNDSorting<EOT>
{ {
public: public:
typedef std::pair<double, unsigned> double_index_pair; eoNDSorting_II(bool nasty_flag_ = false) : eoNDSorting<EOT>(nasty_flag_) {}
typedef std::pair<double, unsigned> double_index_pair;
class compare_nodes class compare_nodes
{ {