On 2009-01-29 03:33:13 -0500, Daniel Keep <[email protected]> said:

while( range.nonEmpty )
{
    doSomethingWith(range.front);
    range.advanceFront;
}

What I'd like is to place directly the range in the conditional expression and have it converted to a boolean (false if empty, true if not):

while (range)
{
        doSomethingWith(range.front);
        range.advanceFront;
}

--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to