fix ctor issues with ei_workaround_msvc_std_vector

This commit is contained in:
Gael Guennebaud 2009-04-21 08:12:07 +00:00
parent b14d1139df
commit 4efcc14b91

View File

@ -112,6 +112,12 @@ class vector<T,DummyAlloc,true>
else if (__new_size < vector_base::size())
vector_base::erase(vector_base::begin() + __new_size, vector_base::end());
}
void push_back(const value_type& __x)
{ vector_base::push_back(__x); }
iterator insert(iterator __position, const value_type& __x)
{ return vector_base::insert(__position,__x); }
iterator insert(iterator __position, size_type __n, const value_type& __x)
{ return vector_base::insert(__position, __n, __x); }
#elif defined(_GLIBCXX_VECTOR) && EIGEN_GNUC_AT_LEAST(4,1)
// workaround GCC std::vector implementation
// Note that before gcc-4.1 we already have: std::vector::resize(size_type,const T&),
@ -126,6 +132,7 @@ class vector<T,DummyAlloc,true>
#else
using vector_base::resize;
#endif
};
}