Minor changes to make it run under Visual Studio 6.0
This commit is contained in:
parent
b3e57bedad
commit
1d70ba7a9b
1 changed files with 10 additions and 0 deletions
|
|
@ -107,7 +107,12 @@ public:
|
||||||
eoScalarFitnessAssembled( const eoScalarFitnessAssembled& other) : std::vector<ScalarType>( other ) {}
|
eoScalarFitnessAssembled( const eoScalarFitnessAssembled& other) : std::vector<ScalarType>( other ) {}
|
||||||
|
|
||||||
eoScalarFitnessAssembled& operator=( const eoScalarFitnessAssembled& other) {
|
eoScalarFitnessAssembled& operator=( const eoScalarFitnessAssembled& other) {
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
typedef std::vector<ScalarType> myvector;
|
||||||
|
myvector::operator=( other );
|
||||||
|
#else
|
||||||
std::vector<ScalarType>::operator=( other );
|
std::vector<ScalarType>::operator=( other );
|
||||||
|
#endif
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -125,7 +130,12 @@ public:
|
||||||
|
|
||||||
//! Overload push_back()
|
//! Overload push_back()
|
||||||
void push_back(const ScalarType& _val ){
|
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 );
|
std::vector<ScalarType>::push_back( _val );
|
||||||
|
#endif
|
||||||
if ( size() > FitnessTraits::size() )
|
if ( size() > FitnessTraits::size() )
|
||||||
FitnessTraits::setDescription( size()-1, "Unnamed variable");
|
FitnessTraits::setDescription( size()-1, "Unnamed variable");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue