
14 Jul
2012
14 Jul
'12
12:34 p.m.
On Fri, Jul 13, 2012 at 10:42 AM, Thorsten Ottosen <thorsten.ottosen@dezide.com> wrote:
Hm.
Why not follow this design:
http://www.boost.org/doc/libs/1_50_0/libs/range/doc/html/range/reference/ran...
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. --Beman