-
Notifications
You must be signed in to change notification settings - Fork 276
Fails to compile with GCC 6.x - make destructors noexcept #1317
Comments
I think this makes sense. We generally don't want the possibility of an exception within the scope of a destructor. Good read on the subject: http://bin-login.name/ftp/pub/docs/programming_languages/cpp/cffective_cpp/MEC/MI11_FR.HTM |
So, how do we do it? Compile with |
We should have a common approach for all C++ destructors. Effective C++ talks about two problems concerning exceptions in destructors:
I think that we should either avoid using anything in a destructor that could raise an exception or wrap code in a simple try with an empty-bodied catch as recommended in http://bin-login.name/ftp/pub/docs/programming_languages/cpp/cffective_cpp/MEC/MI11_FR.HTM. Calling |
Testing the latest & greatest gcc compiler, I run into some issues.
NTA_CHECK(..) << "msg"
macro:Looks like we'll have to rewrite these macros
The text was updated successfully, but these errors were encountered: