jaeandersson / swig

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
http://www.swig.org
Other
23 stars 19 forks source link

The Matlab empty string ('') is not recognized as a valid string. #76

Closed Alzathar closed 7 years ago

Alzathar commented 7 years ago

I wrapped some C++ methods which wants a std::string object as input. It works for non-empty string but in case of an empty string, it always fails with the error message "No matching function for overload function". The fix in this PR fixed the issue.

jaeandersson commented 7 years ago

Thanks for your contribution!