
27 Sep
2004
27 Sep
'04
4:50 p.m.
"Angus Leeming" <angus.leeming@btopenworld.com> wrote in message news:cj96ub$l89$1@sea.gmane.org...
Dear all,
I've taken Richard Johnson's glob_iterator that he posted to the list back in January and re-written it completely, using Boost.Spirit to transform the input 'glob' into an equivalent regex. The result is a 'boost::glob' function that I believe is fully POSIX-conformant.
Example usage:
fs::path const starting_directory("."); std::list<fs::path> const matches = boost::glob("../te?t/foo*bar", starting_directory);
This look way too inefficient. Why would you want to copy list of complex objects? Iterator interface seems much better fit here. Gennadiy.