23 Jun
2008
23 Jun
'08
12:20 a.m.
Hi, I want to calculate exactly how much space it is needed to serialize a number of objects. What I'm thinking is another class that implements the Saving Archive concept and only invokes sizeof() rather than actually writing anything. From what I understand I should overload the << and & operators for this class to call save() or serialize() on the object, unless it is a POD (in which case the size is already known). Has this been done before? Thanks