This commit is contained in:
JoelKatz
2012-06-01 15:41:37 -07:00
parent 6be5c42720
commit 3583b7478f

View File

@@ -68,7 +68,8 @@ public:
virtual void add(Serializer& s) const { return; }
virtual bool isEquivalent(const SerializedType& t) const { return true; }
virtual bool isEquivalent(const SerializedType& t) const
{ assert(getSType() == STI_NOTPRESENT); return t.getSType() == STI_NOTPRESENT; }
bool operator==(const SerializedType& t) const
{ return (getSType() == t.getSType()) && isEquivalent(t); }