Boost logo

Boost Users :

From: Andrew Holden (aholden_at_[hidden])
Date: 2006-04-10 13:14:20


> -----Original Message-----
> From: James Hughes [mailto:JHughes_at_[hidden]]
> Sent: Monday, April 10, 2006 11:59 AM
> For example, if our machine power fails, we have very limited amount
of
> battery backup to store everything cached to flash before we run out
of
> watts, so whatever scheme I implement needs to be able to be told to
flush
> immediately - can I do that with streambufs?

I think you can force a stream to flush immediatly with something
similar to the following:

outputStream << std::flush;


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net