Add an STObject::operator== that is sensible.

This commit is contained in:
JoelKatz
2012-10-23 11:22:37 -07:00
parent 67c87a9d13
commit 756e628f93
2 changed files with 39 additions and 1 deletions

View File

@@ -148,6 +148,9 @@ public:
{ return makeDefaultObject(STI_NOTPRESENT, name); }
static std::auto_ptr<SerializedType> makeDefaultObject(SField::ref name)
{ return makeDefaultObject(name.fieldType, name); }
bool operator==(const STObject& o) const;
bool operator!=(const STObject& o) const { return ! (*this == o); }
};
class STArray : public SerializedType