diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-06-27 22:30:46 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-06-27 22:30:46 +0200 |
commit | 487d94f495628f557a1a7456cc2793c1fe043108 (patch) | |
tree | fb2cb58bccbdb7929a8683a27da3d5479f9695dd /test/main.h | |
parent | 74beb218d25e155e074500739138e6bcface1474 (diff) |
Fix bug #623: inlining test_is_equal leads to failures with x87
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 6 |
1 files changed, 5 insertions, 1 deletions
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<Derived>& m) return m.isUnitary(test_precision<typename internal::traits<Derived>::Scalar>()); } +// Forward declaration to avoid ICC warning +template<typename T, typename U> +bool test_is_equal(const T& actual, const U& expected); + 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) { if (actual==expected) return true; |