|
Boost : |
Subject: [boost] [serialization] Calling basic_streambuf::sync in basic_binary_iprimitive destructor
From: Andrey Upadyshev (oliora_at_[hidden])
Date: 2009-09-11 08:58:30
Hi, All!
Anybody knows, does we really need to call std::basic_streambuf::sync in
boost::archive::basic_binary_iprimitive destructor?
Is it possible to not call it?
I ask it because the call of sync with file stream buffer leads to
skipping of the unreaded input data.
I think it is not good, or al least it must be clear described in
documentation, that binary_iarchive when used with file stream skips to
the end of a stream.
Andrey Upadyshev
P.S. Sorry for my English
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk