From 487d94f495628f557a1a7456cc2793c1fe043108 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 27 Jun 2013 22:30:46 +0200 Subject: [PATCH] Fix bug #623: inlining test_is_equal leads to failures with x87 --- test/main.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/main.h b/test/main.h index 0d65d64c1..2a6b184ae 100644 --- a/test/main.h +++ b/test/main.h @@ -295,8 +295,12 @@ inline bool test_isUnitary(const MatrixBase& m) return m.isUnitary(test_precision::Scalar>()); } +// Forward declaration to avoid ICC warning template -inline bool test_is_equal(const T& actual, const U& expected) +bool test_is_equal(const T& actual, const U& expected); + +template +bool test_is_equal(const T& actual, const U& expected) { if (actual==expected) return true;