Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-07-26 14:06:47


Right you are.

On Fri, 26 Jul 2002, Steven E. Harris wrote:
seharr> Jeremy Siek <jsiek_at_[hidden]> writes:
seharr>
seharr> > void read(bool& at_end) { assert(in != 0);
seharr> > if (*in)
seharr> > std::getline(*in, line);
seharr> > if (*in)
seharr> ^^^
seharr>
seharr> Shouldn't that sense be inverted, as:
seharr>
seharr> void read(bool& at_end)
seharr> {
seharr> assert( in != 0 );
seharr> at_end = !std::getline( *in, line );
seharr> }

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


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