#526 : propagate c++11 noexcept to director classes

This commit is contained in:
Christophe Duvernois 2017-04-25 15:53:25 +02:00
commit 4777a0ad3c
8 changed files with 48 additions and 5 deletions

View file

@ -5366,8 +5366,11 @@ int PYTHON::classDirectorMethod(Node *n, Node *parent, String *super) {
Delete(target);
// Get any exception classes in the throws typemap
if (Getattr(n, "noexcept")) {
Append(w->def, " noexcept");
Append(declaration, " noexcept");
}
ParmList *throw_parm_list = 0;
if ((throw_parm_list = Getattr(n, "throws")) || Getattr(n, "throw")) {
Parm *p;
int gencomma = 0;