aboutsummaryrefslogtreecommitdiff
path: root/Lib/swig.swg
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2008-12-28 20:16:31 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2008-12-28 20:16:31 +0000
commite4c4dedc82e9db22160a2e01d041d928e384ad2b (patch)
tree572ed9150febcc28b76f5ca4047d314d43eab450 /Lib/swig.swg
parentb190c10bf290f99ee6b8b7400aec59e580b29494 (diff)
downloadswig-e4c4dedc82e9db22160a2e01d041d928e384ad2b.tar.gz
SwigValueWrapper - remove two constructors which are not required by the code SWIG generates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/swig.swg')
-rw-r--r--Lib/swig.swg3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/swig.swg b/Lib/swig.swg
index 8e14ccfbb..4e0657587 100644
--- a/Lib/swig.swg
+++ b/Lib/swig.swg
@@ -653,10 +653,9 @@ template<typename T> class SwigValueWrapper {
Pointer& operator=(Pointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
} pointer;
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public:
SwigValueWrapper() : pointer(0) { }
- SwigValueWrapper(const SwigValueWrapper<T>& rhs) : pointer(new T(*rhs.pointer.ptr)) { }
- SwigValueWrapper(const T& t) : pointer(new T(t)) { }
SwigValueWrapper& operator=(const T& t) { Pointer tmp(new T(t)); pointer = tmp; return *this; }
operator T&() const { return *pointer.ptr; }
T *operator&() { return pointer.ptr; }