Re: C++11: Make all destructors noexcept?



Den 2015-08-30 kl. 11:34, skrev Murray Cumming:
On Sat, 2015-08-29 at 17:53 +0200, Jonas Platte wrote:
Most destructors are noexcept(true) by default in C++11 already [1].
If some class in *mm has a destructor that can throw exceptions, it's
likely to be broken already.

[1]: http://en.cppreference.com/w/cpp/language/destructor
Thanks.

Do you think we should generally be using noexcept(true) rather than
noexcept?


Mixing noexcept and noexcept(something) would make it more difficult to compile with Visual Studio 2013.
https://bugzilla.gnome.org/show_bug.cgi?id=753271#c9



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]