
20 Jun
2008
20 Jun
'08
4:20 p.m.
you could way make a streambuffer which doesn't do anything other than count characters and make an archive based on that. robert Ramey Ioannis Papadopoulos wrote:
Hi,
Is there any means of obtaining how big my archive will be before actually serializing? Something like a special boost::archive that will count the size of what I'm serializing. I'm mainly concerned on allocating exactly the space I'll be needing for binary_oarchives.
I guess I should follow the SA concept (since I'm trying to find the size before saving) but how can I know any extra overhead?
Thanks