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:
William S Fulton 2004-10-26 21:45:47 +00:00
commit a7db1c323f

View file

@ -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