Skip to content

Commit

Permalink
Modify reason for suppression of cloneND in CloneToNDArray.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufjimoh committed Feb 7, 2025
1 parent c0666dc commit 1ead562
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ template <typename ElementType> PyObject *cloneND(const ElementType *carray, con
* @return
*/
// cppcheck-suppress constParameterPointer
// Suppressed because the classes using this function require the dim parameter to be non-const. For example,
// NumpyFunctions.cpp failed system tests when dim was made const.
// Suppressed because one of the cloneND overloads calls
// PyArray_NewFromDescrclasses inside NumpyFunctions::func_PyArray_NewFromDescr, which
// requires the dim parameter to be non-const.
template <> PyObject *cloneND(const std::string *carray, const int ndims, Py_intptr_t *dims) {
boost::python::list pystrs;
const std::string *iter = carray;
Expand Down

0 comments on commit 1ead562

Please sign in to comment.