On Sunday 29 September 2013 21:55:44 Emil Dotchevski wrote:
On Sun, Sep 29, 2013 at 8:53 PM, Andrey Semashev
wrote: On Sunday 29 September 2013 15:55:01 Emil Dotchevski wrote:
On Sun, Sep 29, 2013 at 2:23 PM, Evgeny Panasyuk
Writing throwing destructors is discouraged, everyone knows that. But sometimes you just need it because it offers benefits compared to other approaches.
It also has drawbacks. :)
Perhaps "need" is an overstatement here, I'm sure there are other ways to do this even if we insist on using the same syntax.
I didn't intend to create an argument, but I think that it is a mistake to open this Pandora's box, so I don't want to provide support for it in the exception library.
Ok. In that case, how about making unhandled_exception_count() a member of boost/detail, so that multiple libraries can use it?