mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 04:35:57 +08:00
fix ctor issues with ei_workaround_msvc_std_vector
This commit is contained in:
parent
b14d1139df
commit
4efcc14b91
@ -112,6 +112,12 @@ class vector<T,DummyAlloc,true>
|
|||||||
else if (__new_size < vector_base::size())
|
else if (__new_size < vector_base::size())
|
||||||
vector_base::erase(vector_base::begin() + __new_size, vector_base::end());
|
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)
|
#elif defined(_GLIBCXX_VECTOR) && EIGEN_GNUC_AT_LEAST(4,1)
|
||||||
// workaround GCC std::vector implementation
|
// workaround GCC std::vector implementation
|
||||||
// Note that before gcc-4.1 we already have: std::vector::resize(size_type,const T&),
|
// 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
|
#else
|
||||||
using vector_base::resize;
|
using vector_base::resize;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user