|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-05-02 13:00:44
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;
> }
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk