Fix using directives for gcc-4.1
This commit is contained in:
parent
929974805d
commit
10d582b31d
19 changed files with 86 additions and 85 deletions
|
|
@ -44,7 +44,7 @@ class eoLinearFitScaling : public eoPerf2Worth<EOT> // false: do not cache fitne
|
|||
{
|
||||
public:
|
||||
|
||||
using eoLinearFitScaling< EOT >::value;
|
||||
using eoPerf2Worth<EOT>::value;
|
||||
|
||||
/* Ctor:
|
||||
@param _p selective pressure (in (1,2])
|
||||
|
|
|
|||
|
|
@ -42,11 +42,12 @@ template <class EOT>
|
|||
class eoNDSorting : public eoPerf2WorthCached<EOT, double>
|
||||
{
|
||||
public :
|
||||
|
||||
using eoNDSorting< EOT >::value;
|
||||
eoNDSorting(bool nasty_flag_ = false) : nasty_declone_flag_that_only_is_implemented_for_two_objectives(nasty_flag_)
|
||||
{}
|
||||
|
||||
|
||||
using eoPerf2WorthCached<EOT, double>::value;
|
||||
eoNDSorting(bool nasty_flag_ = false)
|
||||
: nasty_declone_flag_that_only_is_implemented_for_two_objectives(nasty_flag_)
|
||||
{}
|
||||
|
||||
|
||||
eoNDSorting()
|
||||
: nasty_declone_flag_that_only_is_implemented_for_two_objectives(false)
|
||||
|
|
@ -433,9 +434,9 @@ template <class EOT>
|
|||
class eoNDSorting_II : public eoNDSorting<EOT>
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
eoNDSorting_II(bool nasty_flag_ = false) : eoNDSorting<EOT>(nasty_flag_) {}
|
||||
|
||||
|
||||
typedef std::pair<double, unsigned> double_index_pair;
|
||||
|
||||
class compare_nodes
|
||||
|
|
|
|||
|
|
@ -89,8 +89,8 @@ class eoSequentialOp : public eoOpContainer<EOT>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoOpContainer< EOT >::ops;
|
||||
using eoOpContainer< EOT >::rates;
|
||||
using eoOpContainer<EOT>::ops;
|
||||
using eoOpContainer<EOT>::rates;
|
||||
|
||||
typedef unsigned position_type;
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class eoParetoRanking : public eoPerf2WorthCached<EOT, double>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoParetoRanking< EOT>::value;
|
||||
using eoPerf2WorthCached<EOT, double>::value;
|
||||
|
||||
eoParetoRanking(eoDominanceMap<EOT>& _dominanceMap)
|
||||
: eoPerf2WorthCached<EOT, double>(), dominanceMap(_dominanceMap)
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class eoPerf2Worth : public eoUF<const eoPop<EOT>&, void>, public eoValueParam<s
|
|||
{
|
||||
public:
|
||||
|
||||
using eoPerf2Worth<EOT, WorthT>::value;
|
||||
using eoValueParam<std::vector<WorthT> >::value;
|
||||
|
||||
/** @brief default constructor */
|
||||
eoPerf2Worth(std::string _description = "Worths")
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class eoRanking : public eoPerf2Worth<EOT> // false: do not cache fitness
|
|||
{
|
||||
public:
|
||||
|
||||
using eoRanking< EOT >::value;
|
||||
using eoPerf2Worth<EOT>::value;
|
||||
|
||||
/* Ctor:
|
||||
@param _p selective pressure (in (1,2]
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class eoSharing : public eoPerf2Worth<EOT>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoSharing< EOT >::value;
|
||||
using eoPerf2Worth<EOT>::value;
|
||||
|
||||
|
||||
/* Ctor requires a distance - cannot have a default distance! */
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ class eoEsChromInit : public eoRealInitBounded<EOT>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoEsChromInit<EOT>::size;
|
||||
using eoEsChromInit<EOT>::theBounds;
|
||||
using eoRealInitBounded<EOT>::size;
|
||||
using eoRealInitBounded<EOT>::theBounds;
|
||||
|
||||
typedef typename EOT::Fitness FitT;
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class eoEsFull : public eoVector<Fit, double>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoEsFull< Fit >::size;
|
||||
using eoVector<Fit, double>::size;
|
||||
|
||||
|
||||
typedef double Type;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class eoEsStdev : public eoVector<Fit, double>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoEsStdev<Fit>::size;
|
||||
using eoVector<Fit, double>::size;
|
||||
|
||||
typedef double Type;
|
||||
|
||||
|
|
|
|||
|
|
@ -55,10 +55,10 @@ class eoParseTree : public EO<FType>, public parse_tree<Node>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoParseTree<FType, Node >::back;
|
||||
using eoParseTree<FType, Node >::ebegin;
|
||||
using eoParseTree<FType, Node >::eend;
|
||||
using eoParseTree<FType, Node >::size;
|
||||
using parse_tree<Node>::back;
|
||||
using parse_tree<Node>::ebegin;
|
||||
using parse_tree<Node>::eend;
|
||||
using parse_tree<Node>::size;
|
||||
|
||||
|
||||
typedef typename parse_tree<Node>::subtree Subtree;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class eoAssembledFitnessAverageStat : public eoStat<EOT, double>
|
|||
{
|
||||
public :
|
||||
|
||||
using eoAssembledFitnessAverageStat< EOT >::value;
|
||||
using eoStat<EOT, double>::value;
|
||||
|
||||
typedef typename EOT::Fitness Fitness;
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ class eoAssembledFitnessBestStat : public eoStat<EOT, double>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoAssembledFitnessBestStat< EOT >::value;
|
||||
using eoStat<EOT, double>::value;
|
||||
|
||||
typedef typename EOT::Fitness Fitness;
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class eoFDCStat : public eoStat<EOT, double>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoFDCStat < EOT>::value;
|
||||
using eoStat<EOT, double>::value;
|
||||
|
||||
/** Ctor without the optimum */
|
||||
eoFDCStat(eoDistance<EOT> & _dist, std::string _description = "FDC") :
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class eoFitnessStat : public eoSortedStat<EOT, std::vector<FitT> >
|
|||
{
|
||||
public :
|
||||
|
||||
using eoFitnessStat< EOT, FitT >::value;
|
||||
using eoSortedStat<EOT, std::vector<FitT> >::value;
|
||||
|
||||
eoFitnessStat(std::string _description = "AllFitnesses") :
|
||||
eoSortedStat<EOT,std::vector<FitT> >(std::vector<FitT>(0), _description) {}
|
||||
|
|
@ -67,7 +67,7 @@ class eoMOFitnessStat : public eoSortedStat<EOT, std::vector<PartFitT> >
|
|||
{
|
||||
public:
|
||||
|
||||
using eoMOFitnessStat< EOT, PartFitT >::value;
|
||||
using eoSortedStat<EOT, std::vector<PartFitT> >::value;
|
||||
|
||||
/** Ctor: say what component you want
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class eoPopStat : public eoStat<EOT, std::string>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoPopStat< EOT>::value;
|
||||
using eoStat<EOT, std::string>::value;
|
||||
|
||||
/** default Ctor, void std::string by default, as it appears
|
||||
on the description line once at beginning of evolution. and
|
||||
|
|
@ -97,7 +97,7 @@ class eoSortedPopStat : public eoSortedStat<EOT, std::string>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoSortedPopStat< EOT>::value;
|
||||
using eoSortedStat<EOT, std::string>::value;
|
||||
|
||||
/** default Ctor, void std::string by default, as it appears on
|
||||
the description line once at beginning of evolution. and is
|
||||
|
|
|
|||
|
|
@ -38,13 +38,13 @@ class eoScalarFitnessStat : public eoSortedStat<EOT, std::vector<double> >
|
|||
{
|
||||
public:
|
||||
|
||||
using eoScalarFitnessStat< EOT, FitT >::value;
|
||||
using eoSortedStat<EOT, std::vector<double> >::value;
|
||||
|
||||
eoScalarFitnessStat(std::string _description = "FitnessES",
|
||||
eoRealVectorBounds & _bounds = eoDummyVectorNoBounds) :
|
||||
eoSortedStat<EOT, std::vector<double> >(std::vector<double>(0), _description) ,
|
||||
range(*_bounds[0])
|
||||
{}
|
||||
eoRealVectorBounds & _bounds = eoDummyVectorNoBounds)
|
||||
: eoSortedStat<EOT, std::vector<double> >(std::vector<double>(0), _description),
|
||||
range(*_bounds[0])
|
||||
{}
|
||||
|
||||
virtual void operator()(const std::vector<const EOT*>& _popPters)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ template <class EOT> class eoAverageStat : public eoStat<EOT, typename EOT::Fitn
|
|||
{
|
||||
public :
|
||||
|
||||
using eoAverageStat< EOT >::value;
|
||||
using eoStat<EOT, typename EOT::Fitness>::value;
|
||||
|
||||
typedef typename EOT::Fitness Fitness;
|
||||
|
||||
|
|
@ -169,7 +169,7 @@ class eoSecondMomentStats : public eoStat<EOT, std::pair<double, double> >
|
|||
{
|
||||
public :
|
||||
|
||||
using eoSecondMomentStats< EOT >::value;
|
||||
using eoStat<EOT, std::pair<double, double> >::value;
|
||||
|
||||
typedef typename EOT::Fitness fitness_type;
|
||||
|
||||
|
|
@ -212,7 +212,7 @@ class eoNthElementFitnessStat : public eoSortedStat<EOT, typename EOT::Fitness >
|
|||
#endif
|
||||
{
|
||||
public :
|
||||
using eoNthElementFitnessStat< EOT >::value;
|
||||
using eoSortedStat<EOT, typename EOT::Fitness >::value;
|
||||
|
||||
typedef typename EOT::Fitness Fitness;
|
||||
|
||||
|
|
@ -318,7 +318,7 @@ class eoBestFitnessStat : public eoStat<EOT, typename EOT::Fitness>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoBestFitnessStat< EOT >::value;
|
||||
using eoStat<EOT, typename EOT::Fitness>::value;
|
||||
|
||||
typedef typename EOT::Fitness Fitness;
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class eoIncrementorParam : public eoUpdater, public eoValueParam<T>
|
|||
{
|
||||
public:
|
||||
|
||||
using eoIncrementorParam< T >::value;
|
||||
using eoValueParam<T>::value;
|
||||
|
||||
/** Default Ctor : a name and optionally an increment*/
|
||||
eoIncrementorParam( std::string _name, T _stepsize = 1) :
|
||||
|
|
|
|||
Reference in a new issue