Auto merge of #4308 - zancas:4307_update_comment, r=daira

update comment, to correctly specify number of methods injected

ADD_SERIALIZE_METHODS was incorrectly documented as adding three methods, it now adds two, and the associated documentation correctly asserts this.
This commit is contained in:
Homu 2020-01-24 16:02:40 +00:00
commit c3e6c06812
1 changed files with 4 additions and 4 deletions

View File

@ -196,10 +196,10 @@ enum
#define READWRITEMANY(...) (::SerReadWriteMany(s, ser_action, __VA_ARGS__))
/**
* Implement three methods for serializable objects. These are actually wrappers over
* "SerializationOp" template, which implements the body of each class' serialization
* code. Adding "ADD_SERIALIZE_METHODS" in the body of the class causes these wrappers to be
* added as members.
* Implement two methods, "Serialize" and "Unserialize", for serializable objects. These are
* actually wrappers over the "SerializationOp" template method, which implements the body of each
* classes' serialization code. Adding "ADD_SERIALIZE_METHODS" in the body of the class causes these
* wrapper methods to be added as members.
*/
#define ADD_SERIALIZE_METHODS \
template<typename Stream> \