From a7db1c323f67462d125c4c9808a23d792bc465ca Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 26 Oct 2004 21:45:47 +0000 Subject: [PATCH] Removed SwigValueWrapper specialization git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6524 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/swig.swg | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Lib/swig.swg b/Lib/swig.swg index 531c3412d..34b6b8d6d 100644 --- a/Lib/swig.swg +++ b/Lib/swig.swg @@ -340,21 +340,6 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; - -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& 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& rhs); -}; - #endif %} #endif