diff --git a/eo/src/eoScalarFitnessAssembled.h b/eo/src/eoScalarFitnessAssembled.h index 8c278d8b..d1cc19dd 100644 --- a/eo/src/eoScalarFitnessAssembled.h +++ b/eo/src/eoScalarFitnessAssembled.h @@ -107,7 +107,12 @@ public: eoScalarFitnessAssembled( const eoScalarFitnessAssembled& other) : std::vector( other ) {} eoScalarFitnessAssembled& operator=( const eoScalarFitnessAssembled& other) { +#ifdef _MSC_VER + typedef std::vector myvector; + myvector::operator=( other ); +#else std::vector::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 myvector; + myvector::push_back( _val ); +#else std::vector::push_back( _val ); +#endif if ( size() > FitnessTraits::size() ) FitnessTraits::setDescription( size()-1, "Unnamed variable"); }