From 58ace25e33bdbd347246b25a79e6286425f9d4fc Mon Sep 17 00:00:00 2001 From: Andrew Melim Date: Mon, 5 Dec 2011 21:18:25 +0000 Subject: [PATCH] Fixed discarded qualifier with certain methods --- wrap/Method.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap/Method.cpp b/wrap/Method.cpp index 9319f1036..fbfce29a7 100644 --- a/wrap/Method.cpp +++ b/wrap/Method.cpp @@ -78,7 +78,7 @@ void Method::matlab_wrapper(const string& classPath, // get class pointer // example: shared_ptr = unwrap_shared_ptr< Test >(in[0], "Test"); - ofs << " shared_ptr<" << ((is_const_) ? "const " : "") << className << "> self = unwrap_shared_ptr< " << className + ofs << " shared_ptr<" << className << "> self = unwrap_shared_ptr< " << className << " >(in[0],\"" << className << "\");" << endl; // unwrap arguments, see Argument.cpp