|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-09-27 11:50:06
"Angus Leeming" <angus.leeming_at_[hidden]> wrote in message
news:cj96ub$l89$1_at_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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk