Boost logo

Boost Users :

From: Brad (boost_at_[hidden])
Date: 2008-04-14 03:35:17


Hi guys and gals,

I'm new to boost and this is my first attempt to use bind (big step LOL).

I'm trying to do this:

    bfs::path p( "." );
    bfs::directory_iterator dir_iter( p );
    for_each( dir_iter.begin(), dir_iter.end(), boost::bind(
&purgeOlder, _1 ) )

but I get:

purgefiles.cpp:53: error: 'class boost::filesystem::directory_iterator'
has no member named 'begin'
purgefiles.cpp:53: error: 'class boost::filesystem::directory_iterator'
has no member named 'end'

It would appear directory_iterator does not have these members which are
common on the other containers, am I missing something? Is there a way
to do this using bind?

Cheers,
Brad


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net