Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-05-10 15:14:54

"Eric Niebler" <eric_at_[hidden]> wrote in message

| But users might reasonably expect this:
| int i = 0;
| for( i : vect )
| {
| }
| // maybe use i here
| to use the pre-declared i as a loop variable instead of introducing a
| new variable. That's an important use case, and some allowance should be
| made for it in the chosen syntax.

can you show some important examples?

often, making something "good" at two things makes it bad at both. The new
for-loop is supposed to do one thing
really well.


Boost list run by bdawes at, gregod at, cpdaniel at, john at