|
From: Michael P. <puj...@la...> - 2007-06-25 20:40:11
|
> There is also a way to define a temporary variable in the declaration of
> the in typemap which is then declared at the top of the wrapper
> function. You could do this for the temporary auto_ptr and then assign
> the auto_ptr instead of constructing it as I have done. You'd need to do
> that if your typemap introduced local scope, but as you use %{ %} it
> doesn't.
>
>
That's what I did finally after some more research. Also found out about
freearg typemaps.
|