summaryrefslogtreecommitdiff
path: root/CHANGES.current
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2023-03-08 19:43:26 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2023-03-08 19:45:17 +0000
commit4a6f6283aa7e0b15427c60988b0940dc0349f14a (patch)
tree2279eda71872407229b5dd1c3776dc6507187489 /CHANGES.current
parenta92871d9d12f4aa8e82640f157bb7ffdbf138169 (diff)
downloadswig-4a6f6283aa7e0b15427c60988b0940dc0349f14a.tar.gz
Fix duplicate const in generated code wrapping templates
Fix duplicate const in generated code when template instantiation type is const and use of template parameter is also explicitly const, such as: template <typename T> struct Conster { void cccc1(T const& t) {} }; %template(ConsterInt) Conster<const int>; Above previously led to generated code: (arg1)->cccc1((int const const &)*arg2); instead of (arg1)->cccc1((int const &)*arg2);
Diffstat (limited to 'CHANGES.current')
-rw-r--r--CHANGES.current14
1 files changed, 14 insertions, 0 deletions
diff --git a/CHANGES.current b/CHANGES.current
index f0b916be0..ea3e81022 100644
--- a/CHANGES.current
+++ b/CHANGES.current
@@ -7,6 +7,20 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.2.0 (in progress)
===========================
+2023-03-08: wsfulton
+ Fix duplicate const in generated code when template instantiation type is const
+ and use of template parameter is also explicitly const, such as:
+
+ template <typename T> struct Conster {
+ void cccc1(T const& t) {}
+ };
+ %template(ConsterInt) Conster<const int>;
+
+ Above previously led to generated code:
+ (arg1)->cccc1((int const const &)*arg2);
+ instead of
+ (arg1)->cccc1((int const &)*arg2);
+
2023-03-01: wsfulton
Partial template specialization fixes to support default arguments from the primary
template's parameter list.