To get that final iteration on "" is, on the other hand, seldom useful and often needing an extra removal of the final element. (Assuming there was actually a trailing newline too, of course.)
/ Johan Sundström (a hugging punishment!)
Previous text:
2002-12-30 14:17: Subject: stdin->line_iterator
I have no good answer to that. To me the natural behaviour would be the same as for foreach(foo/"\n", string line).
/ Peter Bortas