Minor changes to make it run under Visual Studio 6.0

This commit is contained in:
okoenig 2003-04-03 09:11:17 +00:00
commit 1d70ba7a9b

View file

@ -107,7 +107,12 @@ public:
eoScalarFitnessAssembled( const eoScalarFitnessAssembled& other) : std::vector<ScalarType>( other ) {}
eoScalarFitnessAssembled& operator=( const eoScalarFitnessAssembled& other) {
#ifdef _MSC_VER
typedef std::vector<ScalarType> myvector;
myvector::operator=( other );
#else
std::vector<ScalarType>::operator=( other );
#endif
return *this;
}
@ -125,7 +130,12 @@ public:
//! Overload push_back()
void push_back(const ScalarType& _val ){
#ifdef _MSC_VER
typedef std::vector<ScalarType> myvector;
myvector::push_back( _val );
#else
std::vector<ScalarType>::push_back( _val );
#endif
if ( size() > FitnessTraits::size() )
FitnessTraits::setDescription( size()-1, "Unnamed variable");
}