there was an issue on doBounderNo class tied to the default values of the ctor of mother class doBounder: fixed

This commit is contained in:
Caner Candan 2010-09-28 10:38:38 +02:00
commit ebb20c44c5
5 changed files with 22 additions and 3 deletions

View file

@ -9,5 +9,6 @@ INCLUDE_DIRECTORIES(
ADD_SUBDIRECTORY(common)
ADD_SUBDIRECTORY(eda_sa)
ADD_SUBDIRECTORY(eda)
ADD_SUBDIRECTORY(sa)
######################################################################################

View file

@ -14,7 +14,7 @@ template < typename EOT >
class doBounder : public eoUF< EOT&, void >
{
public:
doBounder( EOT min = -5, EOT max = 5 )
doBounder( EOT min = EOT(1, 0), EOT max = EOT(1, 0) )
: _min(min), _max(max)
{
assert(_min.size() > 0);

View file

@ -14,8 +14,7 @@ template < typename EOT >
class doBounderNo : public doBounder< EOT >
{
public:
void operator()( EOT& x )
{}
void operator()( EOT& ) {}
};
#endif // !_doBounderNo_h

View file

@ -35,6 +35,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/application/common)
SET(SOURCES
t-doEstimatorNormalMulti
t-mean-distance
t-bounderno
)
FOREACH(current ${SOURCES})

18
test/t-bounderno.cpp Normal file
View file

@ -0,0 +1,18 @@
#include <eo>
#include <do>
#include <mo>
#include <utils/eoLogger.h>
#include <utils/eoParserLogger.h>
#include "Rosenbrock.h"
#include "Sphere.h"
typedef eoReal< eoMinimizingFitness > EOT;
int main(void)
{
doBounderNo< EOT > bounder;
return 0;
}