C++ language pickiness
Bug #1114137 reported by
Ross Younger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
brot2 |
Confirmed
|
Low
|
Unassigned |
Bug Description
Destructors should never throw.
The jury is out on whether declaring exception specifiers in general is worthwhile.
Should destructors should be nothrow? i.e.
virtual ~SomeClass() throw() { ... }
throw() is deprecated in c++11.
Since c++11: void f() noexcept;
If an exception propagates from a noexcept function, that's an insta-termination offence.
Consider using nullptr instead of NULL or 0 constant.
Changed in brot2: | |
importance: | Undecided → Low |
status: | New → Triaged |
importance: | Low → Wishlist |
status: | Triaged → Confirmed |
Changed in brot2: | |
importance: | Wishlist → Undecided |
Changed in brot2: | |
importance: | Undecided → Low |
description: | updated |
description: | updated |
To post a comment you must log in.