diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2008-12-28 20:16:31 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2008-12-28 20:16:31 +0000 |
commit | e4c4dedc82e9db22160a2e01d041d928e384ad2b (patch) | |
tree | 572ed9150febcc28b76f5ca4047d314d43eab450 /Lib/swig.swg | |
parent | b190c10bf290f99ee6b8b7400aec59e580b29494 (diff) | |
download | swig-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.swg | 3 |
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; } |