mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-15 19:03:12 +08:00
bug #1577: fix msvc compilation of unit test, msvc defines ptrdiff_t as long long
This commit is contained in:
parent
7b91c11207
commit
723856dec1
@ -33,6 +33,9 @@ class AnnoyingScalar
|
|||||||
AnnoyingScalar(float _v) { init(); *v = _v; }
|
AnnoyingScalar(float _v) { init(); *v = _v; }
|
||||||
AnnoyingScalar(int _v) { init(); *v = _v; }
|
AnnoyingScalar(int _v) { init(); *v = _v; }
|
||||||
AnnoyingScalar(long _v) { init(); *v = _v; }
|
AnnoyingScalar(long _v) { init(); *v = _v; }
|
||||||
|
#if EIGEN_HAS_CXX11
|
||||||
|
AnnoyingScalar(long long _v) { init(); *v = _v; }
|
||||||
|
#endif
|
||||||
AnnoyingScalar(const AnnoyingScalar& other) { init(); *v = *(other.v); }
|
AnnoyingScalar(const AnnoyingScalar& other) { init(); *v = *(other.v); }
|
||||||
~AnnoyingScalar() {
|
~AnnoyingScalar() {
|
||||||
if(v!=&data)
|
if(v!=&data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user