Minor changes to make it run under Visual Studio 6.0
This commit is contained in:
parent
a63c6ee2ba
commit
9b66196870
1 changed files with 6 additions and 1 deletions
|
|
@ -142,7 +142,12 @@ public:
|
||||||
|
|
||||||
//! Overload push_back()
|
//! Overload push_back()
|
||||||
void push_back(const ScalarType& _val, const std::string& _descr ){
|
void push_back(const ScalarType& _val, const std::string& _descr ){
|
||||||
|
#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
|
||||||
FitnessTraits::setDescription( size()-1, _descr );
|
FitnessTraits::setDescription( size()-1, _descr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue