*_clone functions were in the wrong place.

This commit is contained in:
JoelKatz
2012-04-24 15:57:46 -07:00
parent c21a9b17c5
commit 4bb078f053

View File

@@ -46,8 +46,6 @@ public:
virtual void add(Serializer& s) const { return; }
SerializedType* new_clone(const SerializedType& s) { return s.duplicate(); }
void delete_clone(const SerializedType* s) { boost::checked_delete(s); }
virtual bool isEquivalent(const SerializedType& t) const { return true; }
@@ -57,6 +55,9 @@ public:
{ return (getSType()!=t.getSType()) || !isEquivalent(t); }
};
inline SerializedType* new_clone(const SerializedType& s) { return s.duplicate(); }
inline void delete_clone(const SerializedType* s) { boost::checked_delete(s); }
class STUInt8 : public SerializedType
{
protected: