Skip to content

Commit

Permalink
add reason for suppresion comment in CloneToNDArray.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufjimoh committed Feb 5, 2025
1 parent 149a099 commit c0666dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ template <typename ElementType> PyObject *cloneND(const ElementType *carray, con
* @return
*/
// cppcheck-suppress constParameterPointer
// This is suppressed because the classes using this function do not support the usage of const
// 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.
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 c0666dc

Please sign in to comment.