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) {} };