swig-fortran / swig

This fork of SWIG creates Fortran wrapper code from C++ headers.
http://www.swig.org
Other
42 stars 11 forks source link

Change ownership implementation #110

Closed sethrj closed 5 years ago

sethrj commented 5 years ago

Assignment no longer copy-constructs classes; it always acts like copying or assigning a pointer. Actual class assignment must be implemented by renaming operator=. This way, assignment behavior remains the same irrespective of whether the class is wrapped as a smart pointer.