[galib] Objective Function inside a class

Rob robert.c.green at gmail.com
Tue Oct 20 10:53:13 EDT 2009


Hello All,
I've built a class and I would like to use GALib inside of it, but I keep
getting an error.

I am trying to do the following:
GA2DBinaryStringGenome genome(width,height,(GAGenome::Evaluator)Objective);

where Objective is a member function of my class. I keep getting the error :
argument of type `float (GA::)(GAGenome&)' does not match `float
(*)(GAGenome&)'

Any suggestions? Thanks.



-- 
Robert C. Green II
(412) 860-4825

http://www.parallelcoding.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20091020/5aab61bf/attachment.htm


More information about the galib mailing list