From e4c4dedc82e9db22160a2e01d041d928e384ad2b Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 28 Dec 2008 20:16:31 +0000 Subject: [PATCH] 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 --- Lib/swig.swg | 3 +-- 1 file changed, 1 insertion(+), 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 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& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); public: SwigValueWrapper() : pointer(0) { } - SwigValueWrapper(const SwigValueWrapper& 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; }