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;