Skip to content

Commit 7a6157e

Browse files
generatedunixname2645487282517272meta-codesync[bot]
authored andcommitted
Fix CQS signal modernize-use-using in fbcode/vision/fair
Reviewed By: bottler Differential Revision: D94879733 fbshipit-source-id: fc35eaaa723a2a035b3b204732add7ba8b225c57
1 parent d9839a9 commit 7a6157e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pytorch3d/csrc/utils/vec2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ template <
1919
std::is_same<T, double>::value || std::is_same<T, float>::value>>
2020
struct vec2 {
2121
T x, y;
22-
typedef T scalar_t;
22+
using scalar_t = T;
2323
vec2(T x, T y) : x(x), y(y) {}
2424
};
2525

pytorch3d/csrc/utils/vec3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ template <
1818
std::is_same<T, double>::value || std::is_same<T, float>::value>>
1919
struct vec3 {
2020
T x, y, z;
21-
typedef T scalar_t;
21+
using scalar_t = T;
2222
vec3(T x, T y, T z) : x(x), y(y), z(z) {}
2323
};
2424

0 commit comments

Comments
 (0)