diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-07-30 14:52:15 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-07-30 14:52:15 +0200 |
commit | 723856dec1b5d5be0e35be0612e188a30bfa594b (patch) | |
tree | cb677be2d59b9e1469c1c01986d2a955ebc7d291 /test/AnnoyingScalar.h | |
parent | 7b91c11207ee94e6a113c2a2c36f4a0797fc1c3e (diff) |
bug #1577: fix msvc compilation of unit test, msvc defines ptrdiff_t as long long
Diffstat (limited to 'test/AnnoyingScalar.h')
-rw-r--r-- | test/AnnoyingScalar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/AnnoyingScalar.h b/test/AnnoyingScalar.h index 7d1df2253..2b6544a6a 100644 --- a/test/AnnoyingScalar.h +++ b/test/AnnoyingScalar.h @@ -33,6 +33,9 @@ class AnnoyingScalar AnnoyingScalar(float _v) { init(); *v = _v; } AnnoyingScalar(int _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() { if(v!=&data) |