aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-01-23 12:26:32 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-01-23 12:26:32 +0000
commit6a722602e637cc248265c13735461bd6d7cb5ced (patch)
treeea5237baf15657ce45ce2236f54964097eb69400 /test/sparse.h
parentd3dcb04f2d9fa75b6dc8d2fb51d2a6785b17e70f (diff)
fix a few remaining warnings
and fix commainitializer unit test with MSVC
Diffstat (limited to 'test/sparse.h')
-rw-r--r--test/sparse.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/sparse.h b/test/sparse.h
index d18217e0a..128b129e8 100644
--- a/test/sparse.h
+++ b/test/sparse.h
@@ -24,15 +24,20 @@
#ifndef EIGEN_TESTSPARSE_H
-#ifdef __GNUC__
-#include <ext/hash_map>
+#include "main.h"
+
+#if EIGEN_GNUC_AT_LEAST(4,0)
+#include <tr1/unordered_map>
+#define EIGEN_UNORDERED_MAP_SUPPORT
+namespace std {
+ using std::tr1::unordered_map;
+}
#endif
#ifdef EIGEN_GOOGLEHASH_SUPPORT
#include <google/sparse_hash_map>
#endif
-#include "main.h"
#include <Eigen/Cholesky>
#include <Eigen/LU>
#include <Eigen/Sparse>