More move semantics improvements
More removal of casts in the out typemaps when copying objects to enable C++ compilers to possibly make use of move semantics.
This commit is contained in:
parent
71cd6a38fe
commit
319442a8c4
13 changed files with 22 additions and 22 deletions
|
|
@ -213,7 +213,7 @@ SWIG_fail;%}
|
|||
// %apply SWIGTYPE EXCEPTION_BY_VAL {FooBar};
|
||||
// %apply SWIGTYPE& EXCEPTION_BY_VAL {FooBar&}; // note: need & twice
|
||||
%typemap(throws) SWIGTYPE EXCEPTION_BY_VAL
|
||||
%{SWIG_NewPointerObj(L,(void *)new $1_ltype(($1_ltype &) $1),$&1_descriptor,1);
|
||||
%{SWIG_NewPointerObj(L,(void *)new $1_ltype($1),$&1_descriptor,1);
|
||||
SWIG_fail;%}
|
||||
|
||||
// similar for object reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue