summaryrefslogtreecommitdiff
path: root/Lib/guile
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/guile
parentdc34c39c533b76bf5d8fd13e47906f6a4de16800 (diff)
downloadswig-6d27ead9c0d42588794ff582ecfe9af904d823b4.tar.gz
Add STL container copy constructors where missing
Also provide consistent copy constructor declarations.
Diffstat (limited to 'Lib/guile')
-rw-r--r--Lib/guile/std_map.i8
-rw-r--r--Lib/guile/std_vector.i6
2 files changed, 8 insertions, 6 deletions
diff --git a/Lib/guile/std_map.i b/Lib/guile/std_map.i
index 4ac22c23d..f84e78bc3 100644
--- a/Lib/guile/std_map.i
+++ b/Lib/guile/std_map.i
@@ -225,7 +225,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;
@@ -451,7 +451,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;
@@ -667,7 +667,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;
@@ -885,7 +885,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/guile/std_vector.i b/Lib/guile/std_vector.i
index 4f7538317..42bad849d 100644
--- a/Lib/guile/std_vector.i
+++ b/Lib/guile/std_vector.i
@@ -197,7 +197,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;
@@ -369,7 +370,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;