Skip to content

Commit 17bc043

Browse files
Krzysztof Chalupkafacebook-github-bot
Krzysztof Chalupka
authored andcommitted
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
1 parent f55d37f commit 17bc043

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pytorch3d/csrc/iou_box3d/iou_utils.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ inline bool IsCoplanarTriTri(
508508

509509
// Compute most distant points
510510
auto argvs = ArgMaxVerts(tri1, tri2);
511-
const auto [v1m, v2m] = argvs;
511+
const auto v1m = std::get<0>(argvs);
512+
const auto v2m = std::get<1>(argvs);
512513

513514
vec3<float> n12m = v1m - v2m;
514515
n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);
@@ -542,7 +543,8 @@ inline bool IsCoplanarTriPlane(
542543

543544
// Compute most distant points
544545
auto argvs = ArgMaxVerts(tri, plane);
545-
const auto [v1m, v2m] = argvs;
546+
const auto v1m = std::get<0>(argvs);
547+
const auto v2m = std::get<1>(argvs);
546548

547549
vec3<float> n12m = v1m - v2m;
548550
n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);

0 commit comments

Comments
 (0)