|
Boost : |
From: Seb Martel (smartel_at_[hidden])
Date: 2005-12-29 14:41:29
>
> > 2. Any chance of having a non-throwing version of directory_iterator
> > (similar
> > to status). Since such a common error like not having access to a
> > directory
> > throws an exception, every directory_iterator construction needs a
> > try/catch.
> > The recursive_directory_iterator is kind of useless since it will stop as
> > soon
> > as you get an "access denied".
> > (Maybe a portable can_be_iterated function can be added)
>
> Hum. Worth considering.
>
I would welcome a non-throwing iterator as well. Most of our path iterating routines are littered with try catches to handle cases that aren't truly exceptional.
-Seb
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk