Add back-reference to changes file

This commit is contained in:
William S Fulton 2019-02-18 19:28:35 +00:00
commit be9d736597
4 changed files with 12 additions and 3 deletions

View file

@ -7,6 +7,15 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.0.0 (in progress)
===========================
2019-02-18: jakecobb
[Python] #945 #1234 Elements in std::vector memory access fix.
Accessing an element in a std::vector obtains a reference to the element via an
iterator pointing to the element in the container. If the vector is garbage collected,
the SWIG wrapper containing the pointer to the element becomes invalid. The fix is
to obtain a back-reference to the container by the wrapper to the element in the Python
layer to prevent the garbage collector from destroying the underlying container.
2019-02-17: wsfulton
Fix typemap matching to expand template parameters when the name contains
template parameters. In the %typemap below the type is T and the name is X<T>::make

View file

@ -1828,7 +1828,7 @@ Consider the following C++ code:
<pre>
struct Wheel {
int size;
Wheel(int sz) : size(sz) {}
Wheel(int sz = 0) : size(sz) {}
};
class Bike {

View file

@ -8295,7 +8295,7 @@ Consider the following C++ code:
<pre>
struct Wheel {
int size;
Wheel(int sz) : size(sz) {}
Wheel(int sz = 0) : size(sz) {}
};
class Bike {

View file

@ -5452,7 +5452,7 @@ Consider the following C++ code:
#include &lt;iostream&gt;
struct Wheel {
int size;
Wheel(int sz) : size(sz) {}
Wheel(int sz = 0) : size(sz) {}
~Wheel() { std::cout &lt;&lt; "~Wheel" &lt;&lt; std::endl; }
};