From 521871a7ea940047ff61447eb904129d844b6d58 Mon Sep 17 00:00:00 2001 From: kuepper Date: Mon, 3 Jan 2005 09:35:17 +0000 Subject: [PATCH] fix for gcc-3.4 --- eo/src/es/eoEsChromInit.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/eo/src/es/eoEsChromInit.h b/eo/src/es/eoEsChromInit.h index 70e89772..66711e1b 100644 --- a/eo/src/es/eoEsChromInit.h +++ b/eo/src/es/eoEsChromInit.h @@ -3,7 +3,7 @@ //----------------------------------------------------------------------------- // eoEsChromInit.h // (c) Maarten Keijzer 2000, GeNeura Team, 1998 - EEAAX 1999 -/* +/* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either @@ -38,7 +38,7 @@ /** \ingroup EvolutionStrategies - + Random Es-chromosome initializer (therefore derived from eoInit) This class can initialize four types of real-valued genotypes @@ -55,8 +55,12 @@ template class eoEsChromInit : public eoRealInitBounded { -public : - typedef typename EOT::Fitness FitT; +public: + + using eoEsChromInit< EOT >::size; + using eoEsChromInit< EOT >::theBounds; + + typedef typename EOT::Fitness FitT; /** Ctor: @param * eoRealVectorBounds& _bounds : bounds for uniform initialization @@ -64,7 +68,7 @@ public : * bool _to_scale : wether sigma should be multiplied by the range of each variable * added December 2004 - MS (together with the whole comment :-) */ - eoEsChromInit(eoRealVectorBounds& _bounds, double _sigma = 0.3, bool _to_scale=false) : + eoEsChromInit(eoRealVectorBounds& _bounds, double _sigma = 0.3, bool _to_scale=false) : eoRealInitBounded(_bounds) { // a bit of pre-computations, to ave time later (even if some are useless)