Fixing the typo regarding missing #if needed for proper handling of exceptions in Eigen/Core.

This commit is contained in:
Mehdi Goli 2016-10-16 12:52:34 +01:00
parent e36cb91c99
commit 8fb162fc85

View File

@ -65,6 +65,10 @@
#define EIGEN_USING_STD_MATH(FUNC) using std::FUNC; #define EIGEN_USING_STD_MATH(FUNC) using std::FUNC;
#endif #endif
#if (defined(_CPPUNWIND) || defined(__EXCEPTIONS)) && !defined(__CUDA_ARCH__) && !defined(EIGEN_EXCEPTIONS) && !defined(EIGEN_USE_SYCL)
#define EIGEN_EXCEPTIONS
#endif
#ifdef EIGEN_EXCEPTIONS #ifdef EIGEN_EXCEPTIONS
#include <new> #include <new>
#endif #endif