You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An std::string passed as an argument to a function from matlab fails the type check when the string length is greater than 255 characters. The SWIG_Matlab_ConvertPtrAndOwn method returns error in the first condition in it's body when checking for mxGetNumberOfElements(pm_ptr) != 1. The exact same code works correctly for shorter strings.
To reproduce this, compile the following input file:
An std::string passed as an argument to a function from matlab fails the type check when the string length is greater than 255 characters. The
SWIG_Matlab_ConvertPtrAndOwn
method returns error in the first condition in it's body when checking formxGetNumberOfElements(pm_ptr) != 1
. The exact same code works correctly for shorter strings.To reproduce this, compile the following input file:
In matlab:
I have compiled the code with c++11 flags enabled.
The text was updated successfully, but these errors were encountered: