summaryrefslogtreecommitdiff
path: root/Lib/mzscheme
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2019-02-14 18:53:05 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2019-02-14 18:53:05 +0000
commit6d27ead9c0d42588794ff582ecfe9af904d823b4 (patch)
tree4b24722fd99400ae7237068ce013eb7a8b8dc1d1 /Lib/mzscheme
parentdc34c39c533b76bf5d8fd13e47906f6a4de16800 (diff)
downloadswig-6d27ead9c0d42588794ff582ecfe9af904d823b4.tar.gz
Add STL container copy constructors where missing
Also provide consistent copy constructor declarations.
Diffstat (limited to 'Lib/mzscheme')
-rw-r--r--Lib/mzscheme/std_map.i8
-rw-r--r--Lib/mzscheme/std_vector.i6
2 files changed, 8 insertions, 6 deletions
diff --git a/Lib/mzscheme/std_map.i b/Lib/mzscheme/std_map.i
index 80a16ced0..1d3eec241 100644
--- a/Lib/mzscheme/std_map.i
+++ b/Lib/mzscheme/std_map.i
@@ -228,7 +228,7 @@ namespace std {
typedef const value_type& const_reference;
map();
- map(const map< K, T, C >& other);
+ map(const map& other);
unsigned int size() const;
bool empty() const;
@@ -458,7 +458,7 @@ namespace std {
typedef const value_type& const_reference;
map();
- map(const map< K, T, C >& other);
+ map(const map& other);
unsigned int size() const;
bool empty() const;
@@ -680,7 +680,7 @@ namespace std {
typedef const value_type& const_reference;
map();
- map(const map< K, T, C >& other);
+ map(const map& other);
unsigned int size() const;
bool empty() const;
@@ -902,7 +902,7 @@ namespace std {
typedef const value_type& const_reference;
map();
- map(const map< K, T, C >& other);
+ map(const map& other);
unsigned int size() const;
bool empty() const;
diff --git a/Lib/mzscheme/std_vector.i b/Lib/mzscheme/std_vector.i
index 012c32d32..0ef5edb15 100644
--- a/Lib/mzscheme/std_vector.i
+++ b/Lib/mzscheme/std_vector.i
@@ -199,7 +199,8 @@ namespace std {
vector(unsigned int size = 0);
vector(unsigned int size, const T& value);
- vector(const vector<T>& other);
+ vector(const vector& other);
+
%rename(length) size;
unsigned int size() const;
%rename("empty?") empty;
@@ -383,7 +384,8 @@ namespace std {
vector(unsigned int size = 0);
vector(unsigned int size, const T& value);
- vector(const vector<T>& other);
+ vector(const vector& other);
+
%rename(length) size;
unsigned int size() const;
%rename("empty?") empty;