Fix compilation with gcc and remove TR1 stuff.

This commit is contained in:
Gael Guennebaud 2019-02-20 13:59:34 +01:00
parent 844e5447f8
commit 4e8047cdcf

View File

@ -16,11 +16,6 @@
#if EIGEN_HAS_CXX11 #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 #ifdef min
#undef min #undef min
#endif #endif
@ -29,11 +24,9 @@
#undef max #undef max
#endif #endif
#include <tr1/unordered_map> #include <unordered_map>
#define EIGEN_UNORDERED_MAP_SUPPORT #define EIGEN_UNORDERED_MAP_SUPPORT
namespace std {
using std::tr1::unordered_map;
}
#endif #endif
#ifdef EIGEN_GOOGLEHASH_SUPPORT #ifdef EIGEN_GOOGLEHASH_SUPPORT