Confusing piece of code... Xcode compiler complains 'No matching function for call to 'init_population' yet another portion of similar code for another function works fine??? Any ideas please.
void init_population(int**,ga_vector &,ga_vector &);
void init_population(int** donut_population, ga_vector &population, ga_vector &buffer )
{
int tsize = GA_TARGET.size();
int double_digit = 0;
CRobot **robot_pointer;
robot_pointer = new CRobot *[4];
}
int donut_world_main(void)
{
CRobot** donut_population;
donut_population = new CRobot*[size];
ga_vector pop_alpha, pop_beta;
ga_vector *population, *buffer;
init_population(donut_population, pop_alpha, pop_beta) // THIS IS THE PROBLEM LINE??
population = &pop_alpha;
buffer = &pop_beta;
}