Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-05-02 12:59:00


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;
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk