From cd51999e302ab7bcb94672eb10a4e5bc574d7fba Mon Sep 17 00:00:00 2001 From: Samuel Felton Date: Fri, 1 Dec 2023 13:13:25 +0100 Subject: [PATCH] fix braced initialization warning --- modules/python/bindings/include/core/arrays.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/python/bindings/include/core/arrays.hpp b/modules/python/bindings/include/core/arrays.hpp index 20274f2e22..13ad80777c 100644 --- a/modules/python/bindings/include/core/arrays.hpp +++ b/modules/python/bindings/include/core/arrays.hpp @@ -287,7 +287,8 @@ void bindings_vpTranslationVector(py::class_ np_array) { - verify_array_shape_and_dims(np_array, { 3 }, "ViSP translation vector"); + const std::vector required_shape = { 3 }; + verify_array_shape_and_dims(np_array, required_shape, "ViSP translation vector"); const std::vector shape = np_array.request().shape; vpTranslationVector result; copy_data_from_np(np_array, result.data);