From 9deaa19121e9c64a5cbd81b14feffdb7632646eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Wed, 16 Mar 2022 21:46:04 +0000 Subject: [PATCH] Work around g++-10 docker issue for geo_orthomethods_4. --- test/geo_orthomethods.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/geo_orthomethods.cpp b/test/geo_orthomethods.cpp index b7b660740..5f7ddb91f 100644 --- a/test/geo_orthomethods.cpp +++ b/test/geo_orthomethods.cpp @@ -73,8 +73,9 @@ template void orthomethods_3() // check mixed product typedef Matrix RealVector3; RealVector3 rv1 = RealVector3::Random(); - VERIFY_IS_APPROX(v1.cross(rv1.template cast()), v1.cross(rv1)); - VERIFY_IS_APPROX(rv1.template cast().cross(v1), rv1.cross(v1)); + v2 = rv1.template cast(); + VERIFY_IS_APPROX(v1.cross(v2), v1.cross(rv1)); + VERIFY_IS_APPROX(v2.cross(v1), rv1.cross(v1)); } template void orthomethods(int size=Size)