diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-02-19 21:59:41 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-02-19 21:59:41 +0100 |
commit | 292d61970a025f08daac53a20f6ac8fc7c00574e (patch) | |
tree | de16a4b589fd82893766e5da467d4211516cac65 /test/sparse.h | |
parent | 071629a4403b33072ee9121d762cf0f8ca7a593a (diff) |
Fix C++17 compilation
Diffstat (limited to 'test/sparse.h')
-rw-r--r-- | test/sparse.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/sparse.h b/test/sparse.h index 9912e1e24..7d753fdba 100644 --- a/test/sparse.h +++ b/test/sparse.h @@ -14,7 +14,12 @@ #include "main.h" -#if EIGEN_GNUC_AT_LEAST(4,0) && !defined __ICC && !defined(__clang__) +#if EIGEN_HAS_CXX11 + +#include <unordered_map> +#define EIGEN_UNORDERED_MAP_SUPPORT + +#elif EIGEN_GNUC_AT_LEAST(4,0) && !defined __ICC && !defined(__clang__) #ifdef min #undef min |