From bd53a220a5836c74823392f3fcb13f572409d859 Mon Sep 17 00:00:00 2001 From: evomarc Date: Mon, 12 Nov 2001 15:21:40 +0000 Subject: [PATCH] A few more typename conditionally removed for MSVC++ --- eo/src/utils/eoStat.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eo/src/utils/eoStat.h b/eo/src/utils/eoStat.h index 71d6d575..66f3ffdb 100644 --- a/eo/src/utils/eoStat.h +++ b/eo/src/utils/eoStat.h @@ -91,7 +91,11 @@ template class eoAverageStat : public eoStat(fitness_type(), _description) {} +#else eoAverageStat(std::string _description = "Average Fitness") : eoStat(fitness_type(), _description) {} +#endif static double sumFitness(double _sum, const EOT& _eot) { @@ -170,8 +174,13 @@ public : /** The n_th element fitness in the population (see eoBestFitnessStat) */ +#ifdef _MSC_VER +template +class eoNthElementFitnessStat : public eoSortedStat +#else template class eoNthElementFitnessStat : public eoSortedStat +#endif { public : typedef typename EOT::Fitness Fitness;