From 9db743194088836e9e8a7ab9b2c55122b79e91d0 Mon Sep 17 00:00:00 2001 From: Samuel Felton Date: Sun, 15 Sep 2024 22:59:05 +0200 Subject: [PATCH] Second fix for col vector c++98 compatibility --- modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp b/modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp index 9e46056465..9be38b48b4 100644 --- a/modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp +++ b/modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp @@ -1055,7 +1055,10 @@ bool vpMbtFaceDepthNormal::planeIsInvalid(const vpHomogeneousMatrix &cMo, double computePolygonCentroid(polyPts, centroid); centroid.changeFrame(cMo); centroid.project(); - const vpColVector c({ centroid.get_X(), centroid.get_Y(), centroid.get_Z() }); + vpColVector c(3); + c[0] = centroid.get_X(); + c[1] = centroid.get_Y(); + c[2] = centroid.get_Z(); const double L = c.frobeniusNorm(); const double minD = L * cos(maxAngle); return fabs(D) <= minD;