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
This commit is contained in:
parent
b190c10bf2
commit
e4c4dedc82
1 changed files with 1 additions and 2 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue