From 9868355b40c3c821079682f1ad81f9f555106d26 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 15 Jan 2012 04:17:21 +0000 Subject: [PATCH] Changed & to && to avoid MATLAB warnings --- wrap/Constructor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrap/Constructor.cpp b/wrap/Constructor.cpp index 3f08a6f2a..fa7d4e913 100644 --- a/wrap/Constructor.cpp +++ b/wrap/Constructor.cpp @@ -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