Use copy_bool() workaround in Eigen2 test suite.

See bug #89 and changeset 59596efdf70244f92cd88b07498db8bf293689ac
.
This commit is contained in:
Jitse Niesen 2011-03-03 14:17:23 +00:00
parent dbab12d6b0
commit 99fa279ed1

View File

@ -111,8 +111,10 @@ namespace Eigen
#else // EIGEN_DEBUG_ASSERTS
#undef eigen_assert
// see bug 89. The copy_bool here is working around a bug in gcc <= 4.3
#define eigen_assert(a) \
if( (!(a)) && (!no_more_assert) ) \
if( (!Eigen::internal::copy_bool(a)) && (!no_more_assert) ) \
{ \
Eigen::no_more_assert = true; \
throw Eigen::eigen_assert_exception(); \