Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2003-09-04 09:49:10


> Hi Robert!
>
> I'm looking at the docs right now and so far it looks _far_ better than anything I'v seen
> before.
> Congratulations!
>
> A small nit-pick:
>
> The pointer example uses a for-loop construct of the form:
>
> for(i = 0; i++ < 10;)
>
> unless there's some clause elsewhere, according to 5.4, the result of the expression (i++ <
10)
> is unspecified (there's no sequence point between the operators)
>
Sorry... I thought these operators had the same precedence, but ++ has higher precedence so it
comes first.

There's still something wrong with the example though:
the first
  stops[i]
index from 1 (because 'i' is 1 already when the body is entered)

Fernando Cacciola


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