Lines 1-53
Link Here
|
1 |
--- ./Lib/std/std_container.i.orig 2014-01-12 12:49:23.125903702 +1100 |
|
|
2 |
+++ ./Lib/std/std_container.i 2014-01-12 17:22:07.027709014 +1100 |
3 |
@@ -46,8 +46,14 @@ |
4 |
void resize(size_type new_size); |
5 |
|
6 |
#ifdef SWIG_EXPORT_ITERATOR_METHODS |
7 |
- iterator erase(iterator pos); |
8 |
- iterator erase(iterator first, iterator last); |
9 |
+// Backport C++11 support |
10 |
+// Issue ID: https://github.com/swig/swig/issues/73 |
11 |
+// Commit: https://github.com/swig/swig/commit/92128eef445f75f674894e3f5d4e1fc2a1818957 |
12 |
+%extend { |
13 |
+ // %extend wrapper used for differing definitions of these methods introduced in C++11 |
14 |
+ iterator erase(iterator pos) { return $self->erase(pos); } |
15 |
+ iterator erase(iterator first, iterator last) { return $self->erase(first, last); } |
16 |
+} |
17 |
#endif |
18 |
|
19 |
%enddef |
20 |
@@ -68,8 +74,14 @@ |
21 |
void resize(size_type new_size, const value_type& x); |
22 |
|
23 |
#ifdef SWIG_EXPORT_ITERATOR_METHODS |
24 |
- iterator insert(iterator pos, const value_type& x); |
25 |
- void insert(iterator pos, size_type n, const value_type& x); |
26 |
+// Backport C++11 support |
27 |
+// Issue ID: https://github.com/swig/swig/issues/73 |
28 |
+// Commit: https://github.com/swig/swig/commit/92128eef445f75f674894e3f5d4e1fc2a1818957 |
29 |
+%extend { |
30 |
+ // %extend wrapper used for differing definitions of these methods introduced in C++11 |
31 |
+ iterator insert(iterator pos, const value_type& x) { return $self->insert(pos, x); } |
32 |
+ void insert(iterator pos, size_type n, const value_type& x) { $self->insert(pos, n, x); } |
33 |
+} |
34 |
#endif |
35 |
|
36 |
%enddef |
37 |
@@ -89,8 +101,14 @@ |
38 |
void resize(size_type new_size, value_type x); |
39 |
|
40 |
#ifdef SWIG_EXPORT_ITERATOR_METHODS |
41 |
- iterator insert(iterator pos, value_type x); |
42 |
- void insert(iterator pos, size_type n, value_type x); |
43 |
+// Backport C++11 support |
44 |
+// Issue ID: https://github.com/swig/swig/issues/73 |
45 |
+// Commit: https://github.com/swig/swig/commit/92128eef445f75f674894e3f5d4e1fc2a1818957 |
46 |
+%extend { |
47 |
+ // %extend wrapper used for differing definitions of these methods introduced in C++11 |
48 |
+ iterator insert(iterator pos, value_type x) { return $self->insert(pos, x); } |
49 |
+ void insert(iterator pos, size_type n, value_type x) { $self->insert(pos, n, x); } |
50 |
+} |
51 |
#endif |
52 |
|
53 |
%enddef |