mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-19 16:19:37 +08:00
fix MSVC8 compilation
This commit is contained in:
parent
2f71277105
commit
2e2614b0fd
@ -51,7 +51,7 @@ template<typename VectorType> void zeroSizedVector()
|
|||||||
if (VectorType::SizeAtCompileTime == Dynamic)
|
if (VectorType::SizeAtCompileTime == Dynamic)
|
||||||
{
|
{
|
||||||
VERIFY(t1.size() == 0);
|
VERIFY(t1.size() == 0);
|
||||||
VectorType t2(long(0)); // long disambiguates with 0-the-null-pointer (error with gcc 4.4)
|
VectorType t2(DenseIndex(0)); // DenseIndex disambiguates with 0-the-null-pointer (error with gcc 4.4 and MSVC8)
|
||||||
VERIFY(t2.size() == 0);
|
VERIFY(t2.size() == 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user