From 7a6157e38ef11f699bf0ac203615a59dfec320d2 Mon Sep 17 00:00:00 2001 From: generatedunixname2645487282517272 Date: Mon, 2 Mar 2026 05:59:34 -0800 Subject: [PATCH] Fix CQS signal modernize-use-using in fbcode/vision/fair Reviewed By: bottler Differential Revision: D94879733 fbshipit-source-id: fc35eaaa723a2a035b3b204732add7ba8b225c57 --- pytorch3d/csrc/utils/vec2.h | 2 +- pytorch3d/csrc/utils/vec3.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytorch3d/csrc/utils/vec2.h b/pytorch3d/csrc/utils/vec2.h index f4550f91..a9daa074 100644 --- a/pytorch3d/csrc/utils/vec2.h +++ b/pytorch3d/csrc/utils/vec2.h @@ -19,7 +19,7 @@ template < std::is_same::value || std::is_same::value>> struct vec2 { T x, y; - typedef T scalar_t; + using scalar_t = T; vec2(T x, T y) : x(x), y(y) {} }; diff --git a/pytorch3d/csrc/utils/vec3.h b/pytorch3d/csrc/utils/vec3.h index fc37bf5c..14fd915e 100644 --- a/pytorch3d/csrc/utils/vec3.h +++ b/pytorch3d/csrc/utils/vec3.h @@ -18,7 +18,7 @@ template < std::is_same::value || std::is_same::value>> struct vec3 { T x, y, z; - typedef T scalar_t; + using scalar_t = T; vec3(T x, T y, T z) : x(x), y(y), z(z) {} };