I am already using SWIG to port some C++ libraries in Python, and I am really impressed by the quality of the results. So I'd like to stick with SWIG..
Recently somebody asked me for a Matlab port. Such a idea was actually already in my todolist.. but each time I was googling for that I didn't find nothing enough stable and easy to maintain (also because of my low skills with Matlab and its couple of ways to call C/C++ code).
From my understanding, there is an unmaintained and scarcely documented way to do this in the main branch, and many other attempts on such a direction that did not reach enough maturity to become part of the main branch: link. I'd like to be cross-platform thus I don't think that the COM way may be the solution for me.
However, this time I found that there is a branch that looks quite promising: link Did somebody already test this solution? In case, a simple working example that calls the ported C++ code from Matlab would be very helpful..
EDIT 1: I have removed any reference to C++11
EDIT 2: The matlab
branch (cited in the answers) is currently in evaluation to be merged with the swig
master (see: https://github.com/jaeandersson/swig/issues/72 and https://sourceforge.net/p/swig/mailman/message/35209729/ )