Fix bug #623: inlining test_is_equal leads to failures with x87

This commit is contained in:
Gael Guennebaud 2013-06-27 22:30:46 +02:00
parent 74beb218d2
commit 487d94f495

View File

@ -295,8 +295,12 @@ inline bool test_isUnitary(const MatrixBase<Derived>& m)
return m.isUnitary(test_precision<typename internal::traits<Derived>::Scalar>());
}
// Forward declaration to avoid ICC warning
template<typename T, typename U>
inline bool test_is_equal(const T& actual, const U& expected)
bool test_is_equal(const T& actual, const U& expected);
template<typename T, typename U>
bool test_is_equal(const T& actual, const U& expected)
{
if (actual==expected)
return true;