From 5682f296cd478b81783be8f58393ff21a5293d38 Mon Sep 17 00:00:00 2001 From: gustavoromero Date: Mon, 13 Nov 2000 12:12:14 +0000 Subject: [PATCH] fixing template type --- eo/test/binary_value.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eo/test/binary_value.h b/eo/test/binary_value.h index e3a0c756..e36ad50c 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++)