From: "Peter Dimov" <[EMAIL PROTECTED]>
> I don't see any drawback in throwing something derived from
> std::runtime_error, and not std::runtime_error itself. This lets you
provide
> more information for clients that catch(thread_error) and still lets
others
> catch(std::runtime_error).
>
> As for the extra information, on POSIX it would be a good idea to provide
> the errno-compatible error code returned by pthread_*, and it _might_ be a
> good idea to supply a portable error code, too, as the filesystem library
> does.
>

Fully agreed.
That is an example of what I meant with "coherence between the two
libraries".

Sted


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to