Boost logo

Boost :

Subject: Re: [boost] [serialization] Calling basic_streambuf::sync in basic_binary_iprimitive destructor
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-09-11 13:00:12


An interesting observation. Perhaps you'd like to make a trak item for this?

Robert Ramey

Andrey Upadyshev wrote:
> 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
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk