Re: C++11: Make all destructors noexcept?
- From: Jonas Platte <jonasplatte gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: C++11: Make all destructors noexcept?
- Date: Sun, 30 Aug 2015 13:00:33 +0200
Am 30.08.2015 um 11:34 schrieb 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?
I don't really know. I think cppreference just has it everywhere to
distinguish between the specifier in general and its possible "values".
Doesn't make a difference, so I use the shorter variant in my own code.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]