Boost logo

Boost :

Subject: Re: [boost] [filesystem] C++11 range-based for statement and BOOST_FOREACH support
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-07-14 08:53:51


On Sat, Jul 14, 2012 at 2:34 PM, Beman Dawes <bdawes_at_[hidden]> wrote:
> The implementation would be more elegant, but the user would have to write:
>
> BOOST_FOREACH(directory_entry& x, directory_range(directory_iterator(".")))
>
> instead of the simpler:
>
> BOOST_FOREACH(directory_entry& x, directory_iterator("."))
>
> I verified the above with an actual implementation and test.

What about this?
BOOST_FOREACH(directory_entry& x, directory_range("."))

-- 
Olaf

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