Removed SwigValueWrapper specialization
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
62456756e8
commit
a7db1c323f
1 changed files with 0 additions and 15 deletions
15
Lib/swig.swg
15
Lib/swig.swg
|
|
@ -340,21 +340,6 @@ public:
|
|||
private:
|
||||
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
||||
};
|
||||
|
||||
template<class T> class SwigValueWrapper<const T> {
|
||||
T *tt;
|
||||
public:
|
||||
SwigValueWrapper() : tt(0) { }
|
||||
SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
|
||||
SwigValueWrapper(const T& t) : tt(new T(t)) { }
|
||||
~SwigValueWrapper() { delete tt; }
|
||||
SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
|
||||
operator T&() const { return *tt; }
|
||||
T *operator&() { return tt; }
|
||||
private:
|
||||
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
||||
};
|
||||
|
||||
#endif
|
||||
%}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue