mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 23:03:15 +08:00
Use copy_bool() workaround in Eigen2 test suite.
See bug #89 and changeset 59596efdf70244f92cd88b07498db8bf293689ac .
This commit is contained in:
parent
dbab12d6b0
commit
99fa279ed1
@ -111,8 +111,10 @@ namespace Eigen
|
|||||||
#else // EIGEN_DEBUG_ASSERTS
|
#else // EIGEN_DEBUG_ASSERTS
|
||||||
|
|
||||||
#undef eigen_assert
|
#undef eigen_assert
|
||||||
|
|
||||||
|
// see bug 89. The copy_bool here is working around a bug in gcc <= 4.3
|
||||||
#define eigen_assert(a) \
|
#define eigen_assert(a) \
|
||||||
if( (!(a)) && (!no_more_assert) ) \
|
if( (!Eigen::internal::copy_bool(a)) && (!no_more_assert) ) \
|
||||||
{ \
|
{ \
|
||||||
Eigen::no_more_assert = true; \
|
Eigen::no_more_assert = true; \
|
||||||
throw Eigen::eigen_assert_exception(); \
|
throw Eigen::eigen_assert_exception(); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user