C++ language pickiness

Bug #1114137 reported by Ross Younger
6
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.

Ross Younger (crazyscot)
Changed in brot2:
importance: Undecided → Low
status: New → Triaged
importance: Low → Wishlist
status: Triaged → Confirmed
Ross Younger (crazyscot)
Changed in brot2:
importance: Wishlist → Undecided
Ross Younger (crazyscot)
Changed in brot2:
importance: Undecided → Low
Ross Younger (crazyscot)
description: updated
Ross Younger (crazyscot)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.