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:
William S Fulton 2022-07-04 08:40:04 +01:00
commit 319442a8c4
13 changed files with 22 additions and 22 deletions

View file

@ -81,7 +81,7 @@
%{
$*1_ltype swig_val;
CONVERT_IN(swig_val, $*1_ltype, *$input);
$1_ltype temp = new $*1_ltype(($*1_ltype)swig_val);
$1_ltype temp = new $*1_ltype(swig_val);
swig_acquire_ownership(temp);
$result = temp;
%}