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 };
BOOST_FOREACH( int x, a )
{
std::cout << x << std::end;
}