Re: C++11: Make all destructors noexcept?
- From: Murray Cumming <murrayc murrayc com>
- To: Jonas Platte <jonasplatte gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: C++11: Make all destructors noexcept?
- Date: Sun, 30 Aug 2015 11:34:38 +0200
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?
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]