Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-07-19 19:37:40


Stefan Slapeta <stefan_nospam__at_[hidden]> writes:

> <<
>
> What you wanted to know is: the original code was comparing the
> content of the iterators _before_ comparing the eof states, which is
> not correct (see below). That said [ ... :) ]
>
>> This appears to be a complicated way to write:
>> return eof() && Other.eof()
>> || m_Match==Other.m_Match && m_End==Other.m_End;
>>
>
> No. Just interpret boolean expressions the way they want to talk to
> you :)

Lyrical, but I have no clue what it means.

Whoops, OK, my boolean inferometer was on the fritz. Your logic
looks OK to me.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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