From 8fb162fc8516e3d9af45703097cb24e781af13c2 Mon Sep 17 00:00:00 2001 From: Mehdi Goli Date: Sun, 16 Oct 2016 12:52:34 +0100 Subject: [PATCH] Fixing the typo regarding missing #if needed for proper handling of exceptions in Eigen/Core. --- Eigen/Core | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Eigen/Core b/Eigen/Core index 14313fb63..df67fb22b 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -65,6 +65,10 @@ #define EIGEN_USING_STD_MATH(FUNC) using std::FUNC; #endif +#if (defined(_CPPUNWIND) || defined(__EXCEPTIONS)) && !defined(__CUDA_ARCH__) && !defined(EIGEN_EXCEPTIONS) && !defined(EIGEN_USE_SYCL) + #define EIGEN_EXCEPTIONS +#endif + #ifdef EIGEN_EXCEPTIONS #include #endif