summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-09-05 09:05:44 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-09-05 09:20:59 +0100
commitc5495fea793a76093e436ffb702f00d233fd8e0a (patch)
treefcb93509338d486fcfbf66961b84bf97b7d2ca74 /Lib
parent859264ab94daa50c35503f26e840f51e70924130 (diff)
downloadswig-c5495fea793a76093e436ffb702f00d233fd8e0a.tar.gz
Remove broken %implicitconv for const SWIGTYPE &&
Typemaps should be for SWIGTYPE &&, not just const SWIGTYPE &&. Needs updating for new approach where the proxy object is moved for a parameter containing an rvalue reference.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/typemaps/swigtype.swg24
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/typemaps/swigtype.swg b/Lib/typemaps/swigtype.swg
index e89e94b0b..42c9c54eb 100644
--- a/Lib/typemaps/swigtype.swg
+++ b/Lib/typemaps/swigtype.swg
@@ -74,30 +74,6 @@
}
%typemap(freearg) SWIGTYPE && ""
-#if defined(__cplusplus) && defined(%implicitconv_flag)
-%typemap(in,noblock=1,implicitconv=1) const SWIGTYPE && (void *argp = 0, int res = 0) {
- res = SWIG_ConvertPtr($input, &argp, $descriptor, %convertptr_flags | %implicitconv_flag);
- if (!SWIG_IsOK(res)) {
- %argument_fail(res, "$type", $symname, $argnum);
- }
- if (!argp) { %argument_nullref("$type", $symname, $argnum); }
- $1 = %reinterpret_cast(argp, $ltype);
-}
-%typemap(freearg,noblock=1,match="in",implicitconv=1) const SWIGTYPE &&
-{
- if (SWIG_IsNewObj(res$argnum)) %delete($1);
-}
-#else
-%typemap(in,noblock=1) const SWIGTYPE && (void *argp, int res = 0) {
- res = SWIG_ConvertPtr($input, &argp, $descriptor, %convertptr_flags);
- if (!SWIG_IsOK(res)) {
- %argument_fail(res, "$type", $symname, $argnum);
- }
- if (!argp) { %argument_nullref("$type", $symname, $argnum); }
- $1 = %reinterpret_cast(argp, $ltype);
-}
-#endif
-
/* By value */
#if defined(__cplusplus) && defined(%implicitconv_flag)
%typemap(in,implicitconv=1) SWIGTYPE (void *argp, int res = 0) {