Skip to content

Commit

Permalink
Fix issue with c++98 compat for vector instanciation
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Sep 15, 2024
1 parent 5544d27 commit 495c363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ 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() };
const vpColVector c({ centroid.get_X(), centroid.get_Y(), centroid.get_Z() });
const double L = c.frobeniusNorm();
const double minD = L * cos(maxAngle);
return fabs(D) <= minD;
Expand Down

0 comments on commit 495c363

Please sign in to comment.