Re: [boost] Filesystem I18n comments

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

"Seb Martel" <smartel@real.com> wrote in message news:20051229114129035.00000002196@hagar...
Is the litter just to deal with exceptions coming out of directory_iterator constructors? Or are there other use cases needing excessive try/catch blocks? Also, what should the interface to a non-throwing directory_iterator look like? First try - in addition to the current public members, add: directory_iterator( const path & ph, std::nothrow_t ); // Effects (in addition to normal construction): If error occurs, save errno, and make iterator == the end iterator. system_error_type error(); // Returns 0 if no constructor error, else errno saved by the constructor Comments? Thanks, --Beman
participants (2)
-
Beman Dawes
-
Seb Martel