diff --git a/eo/contrib/MGE/eoInitVirus.h b/eo/contrib/MGE/eoInitVirus.h index f114f1a3b..f4cb53072 100644 --- a/eo/contrib/MGE/eoInitVirus.h +++ b/eo/contrib/MGE/eoInitVirus.h @@ -41,7 +41,7 @@ template class eoInitVirus: public eoInit< eoVirus > { public: - eoInitVirus(unsigned _combien, eoRndGenerator& _generator ) + eoInitVirus(unsigned _combien, eoRndGenerator& _generator ) : combien(_combien), generator(_generator) {} virtual void operator()( eoVirus& chrom) @@ -58,7 +58,7 @@ public: private : unsigned combien; /// generic wrapper for eoFunctor (s), to make them have the function-pointer style copy semantics - eoSTLF generator; + eoSTLF generator; }; /// Inits the virus with one bit to the left set to one @@ -66,7 +66,7 @@ template class eoInitVirus1bit: public eoInit< eoVirus > { public: - eoInitVirus1bit(unsigned _combien, eoRndGenerator& _generator ) + eoInitVirus1bit(unsigned _combien, eoRndGenerator& _generator ) : combien(_combien), generator(_generator) {} virtual void operator()( eoVirus& chrom) @@ -81,6 +81,6 @@ public: private : unsigned combien; /// generic wrapper for eoFunctor (s), to make them have the function-pointer style copy semantics - eoSTLF generator; + eoSTLF generator; }; #endif diff --git a/eo/src/ga/eoBit.h b/eo/src/ga/eoBit.h index 3333099b4..320a5b7d1 100644 --- a/eo/src/ga/eoBit.h +++ b/eo/src/ga/eoBit.h @@ -60,12 +60,12 @@ Example of a complete test program that use various bitstrings operators: Based on STL's std::vector specialization. */ -template +template class eoBit: public eoVector { public: - using ScalarType = ScalarT; + using ScalarType = ScalarT; using eoVector< FitT, ScalarType >::begin; using eoVector< FitT, ScalarType >::end; diff --git a/eo/src/ga/make_genotype_ga.h b/eo/src/ga/make_genotype_ga.h index fd877f02d..3a1afaa84 100644 --- a/eo/src/ga/make_genotype_ga.h +++ b/eo/src/ga/make_genotype_ga.h @@ -68,7 +68,7 @@ eoInit & do_make_genotype(eoParser& _parser, eoState& _state, EOT, float _b // Then we can built a bitstring random initializer // based on boolean_generator class (see utils/rnd_generator.h) - eoBooleanGenerator * gen = new eoBooleanGenerator(_bias); + eoBooleanGenerator * gen = new eoBooleanGenerator(_bias); _state.storeFunctor(gen); eoInitFixedLength* init = new eoInitFixedLength(theSize, *gen); // store in state diff --git a/eo/src/utils/eoRndGenerators.h b/eo/src/utils/eoRndGenerators.h index 48cd82af1..e1168dcd2 100644 --- a/eo/src/utils/eoRndGenerators.h +++ b/eo/src/utils/eoRndGenerators.h @@ -115,7 +115,7 @@ inline bool eoUniformGenerator::operator()(void) to easily generate random booleans with a specified bias \ingroup bitstring */ -template +template class eoBooleanGenerator : public eoRndGenerator { public : diff --git a/mo/test/t-moNKlandscapesIncrEval.cpp b/mo/test/t-moNKlandscapesIncrEval.cpp index f9a76662b..cf9df9de1 100644 --- a/mo/test/t-moNKlandscapesIncrEval.cpp +++ b/mo/test/t-moNKlandscapesIncrEval.cpp @@ -56,7 +56,7 @@ int main() { nkLandscapesEval eval(N, K); // init - eoUniformGenerator uGen; + eoUniformGenerator uGen; eoInitFixedLength init(N, uGen); // verif constructor