added an #ifdef _MSC_VER statement to hide "typename" identifier for Visual Studio

This commit is contained in:
okoenig 2003-02-20 19:13:33 +00:00
commit 4052187a6c

View file

@ -56,8 +56,14 @@ bool minimizing_fitness()
likely not working with scalar fitness values. In that case we're sorry
but you cannot use lottery or roulette_wheel selection...
*/
#ifdef _MSC_VER
eo1.fitness( EOT::Fitness(0.0) );
eo2.fitness( EOT::Fitness(1.0) );
#else
eo1.fitness( typename EOT::Fitness(0.0) ); // tried to cast it to an EOT::Fitness, but for some reason GNU barfs on this
eo2.fitness( typename EOT::Fitness(1.0) );
#endif
return eo2 < eo1; // check whether we have a minimizing fitness
};