From c62d798ec5e46c493d9ae3a8395ab1f8b1ee49b3 Mon Sep 17 00:00:00 2001 From: Taiga Takano Date: Wed, 11 Dec 2024 20:43:49 +0900 Subject: [PATCH] Replace this declaration by a structured binding declaration. --- common/math/geometry/src/spline/catmull_rom_spline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/math/geometry/src/spline/catmull_rom_spline.cpp b/common/math/geometry/src/spline/catmull_rom_spline.cpp index d9cd6025150..265062c149e 100644 --- a/common/math/geometry/src/spline/catmull_rom_spline.cpp +++ b/common/math/geometry/src/spline/catmull_rom_spline.cpp @@ -634,8 +634,8 @@ auto CatmullRomSpline::getTangentVector(const double s) const -> geometry_msgs:: "This message is not originally intended to be displayed, if you see it, please " "contact the developer of traffic_simulator."); default: - const auto index_and_s = getCurveIndexAndS(s); - return curves_[index_and_s.first].getTangentVector(index_and_s.second, true); + const auto [index, s_value] = getCurveIndexAndS(s); + return curves_[index].getTangentVector(s_value, true); } }