Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2003-10-28 09:51:29


"Douglas Gregor" <gregod_at_[hidden]> wrote

> > 2. Reading value from stream:
> >
> > long value;
> > if (in >> value) {
> > ....
> >
> > Maybe only single char (wchar_t) should be read out - what if someone
> > outputs two tribools without separator.
>
> I'm following the standard behavior for 'bool' here, which reads in a
'long';
> see 22.2.2.1.2/14.
>
Would it be also possible to add BOOST_ASSERT into I/O operations, to
protect against user errors?

/Pavel


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