You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried compiling the repo this morning (commit d4a18a1), on my Debian unstable box, and a few files don't compile because of the above error message, because (I quote another part of the message) in C++11 destructors default to noexcept.
The problem is that the assert macro framework raises exceptions, and is used in the dtor of quite a few classes : with C++11, such dtor hence break the compilation.
There are several ways out of this:
never assert in a dtor! It's not logical... and that's why the default is noexcept ;
declare each problematic dtor as possibly raising exceptions with something like ~WronderfulClass() noexcept(false){...}
I can provide an easy patch for the second way out.
The text was updated successfully, but these errors were encountered:
I tried compiling the repo this morning (commit d4a18a1), on my Debian unstable box, and a few files don't compile because of the above error message, because (I quote another part of the message) in C++11 destructors default to noexcept.
The problem is that the assert macro framework raises exceptions, and is used in the dtor of quite a few classes : with C++11, such dtor hence break the compilation.
There are several ways out of this:
~WronderfulClass() noexcept(false){...}
I can provide an easy patch for the second way out.
The text was updated successfully, but these errors were encountered: