X-Git-Url: https://git.dlugolecki.net.pl/?p=genetic.git;a=blobdiff_plain;f=include%2Ffitness%2Ffitness.h;h=1ab804afd43f5911dd229f0fcfb85d510e25aec0;hp=01bddd77e166021e53351eecd4cf478db03efb9a;hb=0c268e96035b65112e449c1c0df49f2be3eb184f;hpb=917440678dc4e920dfd5810da1274665acb17138 diff --git a/include/fitness/fitness.h b/include/fitness/fitness.h index 01bddd7..1ab804a 100644 --- a/include/fitness/fitness.h +++ b/include/fitness/fitness.h @@ -46,7 +46,7 @@ namespace genetic { /** * Copy constructor */ - Fitness(_Chromosome& _chromosome) + Fitness(const _Chromosome& _chromosome) : chromosome(_chromosome) { } @@ -63,7 +63,7 @@ namespace genetic { * Method used to pass additional arguments needed by the function to * run correctly. */ - virtual void parseArguments(std::map) { } + virtual void parseArguments(std::map&) { } /** * Method used to get additional arguments needed by the function to