Skip to content

Commit

Permalink
fix braced initialization warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Dec 1, 2023
1 parent d24edf3 commit cd51999
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/python/bindings/include/core/arrays.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ void bindings_vpTranslationVector(py::class_<vpTranslationVector, vpArray2D<doub
}, numpy_fn_doc_writable);

pyTranslationVector.def(py::init([](np_array_cf<double> np_array) {
verify_array_shape_and_dims(np_array, { 3 }, "ViSP translation vector");
const std::vector<ssize_t> required_shape = { 3 };
verify_array_shape_and_dims(np_array, required_shape, "ViSP translation vector");
const std::vector<ssize_t> shape = np_array.request().shape;
vpTranslationVector result;
copy_data_from_np(np_array, result.data);
Expand Down

0 comments on commit cd51999

Please sign in to comment.