diff options
author | Adam <Adam@anope.org> | 2011-11-03 18:59:51 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-03 18:59:51 -0400 |
commit | 09dba47653f83d62dd3877b4cbac7af3bd16f341 (patch) | |
tree | b130145e1e68fef6021ace10a748afcbab42f2e3 | |
parent | ca33ac608d77229f651aea6566aee9847b9aac2e (diff) |
Added an assignment operator for Serializable because some STL containers use it which causes iterators to become invalidated
-rw-r--r-- | include/serialize.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/serialize.h b/include/serialize.h index af7896c54..7f12cf176 100644 --- a/include/serialize.h +++ b/include/serialize.h @@ -144,6 +144,11 @@ template<typename Type> class Serializable : public SerializableBase serialized_items->erase(this->s_iter); } + Serializable &operator=(const Serializable &) + { + return *this; + } + public: Anope::string serialize_name() { |