From 17bc043a0cf8aa0e9f9128ac032c651db7ef365b Mon Sep 17 00:00:00 2001 From: Krzysztof Chalupka Date: Wed, 12 Oct 2022 10:34:21 -0700 Subject: [PATCH] Remove structured binding Summary: Couldn't build p3d on devfair because C++17 is unsupported. Two structured bindings sneaked in. Reviewed By: bottler Differential Revision: D40280967 fbshipit-source-id: 9627f3f9f76247a6cefbeac067fdead67c6f4e14 --- pytorch3d/csrc/iou_box3d/iou_utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pytorch3d/csrc/iou_box3d/iou_utils.h b/pytorch3d/csrc/iou_box3d/iou_utils.h index e3fb58dd..283822a1 100644 --- a/pytorch3d/csrc/iou_box3d/iou_utils.h +++ b/pytorch3d/csrc/iou_box3d/iou_utils.h @@ -508,7 +508,8 @@ inline bool IsCoplanarTriTri( // Compute most distant points auto argvs = ArgMaxVerts(tri1, tri2); - const auto [v1m, v2m] = argvs; + const auto v1m = std::get<0>(argvs); + const auto v2m = std::get<1>(argvs); vec3 n12m = v1m - v2m; n12m = n12m / std::fmaxf(norm(n12m), kEpsilon); @@ -542,7 +543,8 @@ inline bool IsCoplanarTriPlane( // Compute most distant points auto argvs = ArgMaxVerts(tri, plane); - const auto [v1m, v2m] = argvs; + const auto v1m = std::get<0>(argvs); + const auto v2m = std::get<1>(argvs); vec3 n12m = v1m - v2m; n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);