Fix compilation with recent updates of icc 2016

This commit is contained in:
Gael Guennebaud 2016-07-06 14:07:14 +02:00
parent 5b3a6f51d3
commit 8ec4d6480d

6
Eigen/src/Core/util/Meta.h Normal file → Executable file
View File

@ -16,6 +16,10 @@
#include <math_constants.h>
#endif
#if EIGEN_COMP_ICC>=1600 && __cplusplus >= 201103L
#include <cstdint>
#endif
namespace Eigen {
namespace internal {
@ -29,7 +33,7 @@ namespace internal {
// Only recent versions of ICC complain about using ptrdiff_t to hold pointers,
// and older versions do not provide *intptr_t types.
#if EIGEN_COMP_ICC>=1600
#if EIGEN_COMP_ICC>=1600 && __cplusplus >= 201103L
typedef std::intptr_t IntPtr;
typedef std::uintptr_t UIntPtr;
#else