filesystem-proposal icon indicating copy to clipboard operation
filesystem-proposal copied to clipboard

error_code per operation complex the interface too much

Open lichray opened this issue 12 years ago • 0 comments

That does not feel good. But a 'traditional' global error code makes thread-safe coding hard.

My suggestions are:

  1. Add an error_code member to directory_entry, *directory_iterator, and provide a member function like is_valid() for user to check the status;
  2. Move the non-member operational functions into a context class, so that the error code can be managed in the same way.

lichray avatar Oct 16 '12 06:10 lichray