diff options
author | 2011-10-17 08:44:44 -0400 | |
---|---|---|
committer | 2011-10-17 08:44:44 -0400 | |
commit | 16b638c159d25991bce2ec85351dc85d1d63c328 (patch) | |
tree | 08cd4e5e9fd7469e331a7d895bbb560b29825ca5 /Eigen/Core | |
parent | dcbc985a2821544f4d035e103494d34972ccf71f (diff) |
Throw std::bad_alloc even when exceptions are disabled, by doing new int[size_t(-1)].
Don't throw exceptions on aligned_malloc(0) (just because malloc's retval is null doesn't mean error, if size==0).
Remove EIGEN_NO_EXCEPTIONS option, use only compiler standard defines. Either exceptions are enabled or they aren't.
Diffstat (limited to 'Eigen/Core')
-rw-r--r-- | Eigen/Core | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/Core b/Eigen/Core index 956e0572f..40fd8b4d0 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -167,7 +167,7 @@ #include <intrin.h> #endif -#if (defined(_CPPUNWIND) || defined(__EXCEPTIONS)) && !defined(EIGEN_NO_EXCEPTIONS) +#if defined(_CPPUNWIND) || defined(__EXCEPTIONS) #define EIGEN_EXCEPTIONS #endif |