Boost logo

Boost :

Subject: Re: [boost] [filesystem] C++11 range-based for statement and BOOST_FOREACH support
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2012-07-13 04:45:13

On 12-07-2012 16:10, Beman Dawes wrote:
> Support for the C++11 range-based for statement and BOOST_FOREACH for
> directory_iterator and recursive_directory_iterator has been added to
> trunk. This clears feature requests 5896 and 6521.
> The range-based for has been tested against gcc 4.6, which works, and
> against VC++2012 RC, which ICEs the compiler. The ICE has been
> reported to Microsoft.
> If anyone gives either C++11 range-based for or BOOST_FOREACH a try,
> I'd appreciate hearing about any problems. Both of these are new to
> me, and I'm nervous about getting the enabler free functions right.

Well, if you post the code, I'll take a look.

I'd expect boost::filesystem::begin( ... ) and end() to be implemented
in terms of the std:: mechanism.

We ought to add a macro in Boost.Range to do just that.


Boost list run by bdawes at, gregod at, cpdaniel at, john at