diff --git a/eo/test/binary_value.h b/eo/test/binary_value.h index e3a0c756e..e36ad50c7 100644 --- a/eo/test/binary_value.h +++ b/eo/test/binary_value.h @@ -2,14 +2,12 @@ //----------------------------------------------------------------------------- -typedef eoBin Chrom; - /** Just a simple function that takes binary value of a chromosome and sets the fitnes. @param _chrom A binary chromosome */ -float binary_value(const Chrom& _chrom) +template float binary_value(const Chrom& _chrom) { float sum = 0; for (unsigned i = 0; i < _chrom.size(); i++)