|
Boost : |
From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2003-10-28 11:44:12
On Tue, 28 Oct 2003, Pavel Vozenilek wrote:
> "Douglas Paul Gregor" <gregod_at_[hidden]> wrote
>
> > > Would it be also possible to add BOOST_ASSERT into I/O operations, to
> > > protect against user errors?
> >
> > What would it assert? If the input cannot be accepted, the fail bit will
> > be set.
> >
> This situation - it is most likely programmer error, like missing separator.
> Just to get immediate notification of error.
>
> /Pavel
I don't entirely disagree with you in principle, but I think that the
design of I/O streams dictates the current behavior. I really do think our
hands are tied here.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk