
2 May
2005
2 May
'05
6 p.m.
Peter Dimov wrote:
Eric Niebler wrote:
Yes, but I was refering to native (C-style) strings, as in: BOOST_FOREACH(char ch, "hello world")
This is a good opportunity to ask: what does this do?
char const a[] = { 0, 1, 2 };
Or for extra fun, drop the 0.
BOOST_FOREACH( int x, a ) { std::cout << x << std::end; }