Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2003-11-15 03:07:02


Regarding the i/o state savers for advanced standard attributes, the
documentation says that the destructor 'changes the stream's attribute back
to the saved value.' In the case of basic_ios_iostate_saver, however, it is
not always possible to restore the stream state: a stream which was
originally 'good' may later have had its buffer set to 0, and such a stream
can never be 'good'.

I think it would be more accurate to say that the destructor in this case
'attempts to restore' the original value. Maybe a footnote would be
appropriate.

Jonathan


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