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



Am 29.08.2015 um 17:39 schrieb Murray Cumming:
I wonder, does anyone know if any of our destructors could currently
throw an exception, or if it's conceivable for any of them to throw
exceptions?

If we could make our destructors noexcept (and if that doesn't break
ABI) then we could make our move assignment operators noexcept, and we
could make the RefPtr move operations noexcept too. This lets standard
containers use our move operations.

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


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