forked from bartvdbraak/blender
[msvc2017] remove eigen vector workaround for msvc2017.
This commit is contained in:
parent
3340acd46b
commit
df687837f8
@ -77,7 +77,7 @@ namespace std {
|
|||||||
void resize(size_type new_size)
|
void resize(size_type new_size)
|
||||||
{ resize(new_size, T()); }
|
{ resize(new_size, T()); }
|
||||||
|
|
||||||
#if defined(_VECTOR_)
|
#if defined(_VECTOR_) && (_MSC_VER<1910)
|
||||||
// workaround MSVC std::vector implementation
|
// workaround MSVC std::vector implementation
|
||||||
void resize(size_type new_size, const value_type& x)
|
void resize(size_type new_size, const value_type& x)
|
||||||
{
|
{
|
||||||
@ -110,7 +110,7 @@ namespace std {
|
|||||||
vector_base::insert(vector_base::end(), new_size - vector_base::size(), x);
|
vector_base::insert(vector_base::end(), new_size - vector_base::size(), x);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// either GCC 4.1 or non-GCC
|
// either GCC 4.1, MSVC2017 or non-GCC
|
||||||
// default implementation which should always work.
|
// default implementation which should always work.
|
||||||
void resize(size_type new_size, const value_type& x)
|
void resize(size_type new_size, const value_type& x)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user