Fixed handling of optional arguments under ArgumentParser. Fixed default constructor error in MxArray

This commit is contained in:
hbristow
2013-08-30 16:10:32 +10:00
parent 25ee1f9099
commit d16d637eb2
4 changed files with 10 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ void mexFunction(int nlhs, mxArray*{% if fun|noutputs %} plhs[]{% else %}*{% end
ArgumentParser parser("{{fun.name}}");
parser.{{ functional.composeVariant(fun) }};
MxArrayVector sorted = parser.parse(MxArrayVector(prhs, prhs+nrhs));
{%endif %}
{% endif %}
{% if fun|ninputs or fun|noutputs %}
// setup