diff --git a/bindings/Sofa/src/SofaPython3/Sofa/Types/Binding_CompressedRowSparseMatrix.cpp b/bindings/Sofa/src/SofaPython3/Sofa/Types/Binding_CompressedRowSparseMatrix.cpp index 71777420..ca2e7709 100644 --- a/bindings/Sofa/src/SofaPython3/Sofa/Types/Binding_CompressedRowSparseMatrix.cpp +++ b/bindings/Sofa/src/SofaPython3/Sofa/Types/Binding_CompressedRowSparseMatrix.cpp @@ -58,7 +58,7 @@ void bindCompressedRowSparseMatrixConstraint(pybind11::module& m) return toEigen(accessor.ref()); }); - crsmc.def("add", [](sofa::Data& self, sofa::Index row, sofa::Index col, const MatrixDeriv::Block value) + crsmc.def("add", [](sofa::Data& self, sofa::Index row, sofa::Index col, const typename MatrixDeriv::Block value) { sofa::helper::WriteAccessor accessor(self); auto line = accessor->writeLine(row);