Changed & to && to avoid MATLAB warnings

release/4.3a0
Frank Dellaert 2012-01-15 04:17:21 +00:00
parent 1a10fc451c
commit 9868355b40
1 changed files with 2 additions and 2 deletions

View File

@ -36,11 +36,11 @@ void Constructor::matlab_proxy_fragment(ofstream& ofs, const string& className)
size_t nrArgs = args.size();
// check for number of arguments...
ofs << " if (nargin == " << nrArgs;
if (nrArgs>0) ofs << " & ";
if (nrArgs>0) ofs << " && ";
// ...and their types
bool first = true;
for(size_t i=0;i<nrArgs;i++) {
if (!first) ofs << " & ";
if (!first) ofs << " && ";
ofs << "isa(varargin{" << i+1 << "},'" << args[i].matlabClass() << "')";
first=false;
}