aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2019-02-20 13:59:34 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2019-02-20 13:59:34 +0100
commit4e8047cdcf9a527fa1a0178c370e600eefbcb8b7 (patch)
treec50ca3ce31098bffe1cbfe8907ff0b3425fddc7f /test/sparse.h
parent844e5447f8dd28989a58cd33e357bb68bc175c2a (diff)
Fix compilation with gcc and remove TR1 stuff.
Diffstat (limited to 'test/sparse.h')
-rw-r--r--test/sparse.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/sparse.h b/test/sparse.h
index 7d753fdba..df471b4e2 100644
--- a/test/sparse.h
+++ b/test/sparse.h
@@ -16,11 +16,6 @@
#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
#endif
@@ -29,11 +24,9 @@
#undef max
#endif
-#include <tr1/unordered_map>
+#include <unordered_map>
#define EIGEN_UNORDERED_MAP_SUPPORT
-namespace std {
- using std::tr1::unordered_map;
-}
+
#endif
#ifdef EIGEN_GOOGLEHASH_SUPPORT