From 971404485f559bf8dcdcf12d74411f63e439d5b5 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 13 May 2017 16:59:36 +0100 Subject: [PATCH] php5: propagate c++11 noexcept to director classes --- Source/Modules/php5.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Modules/php5.cxx b/Source/Modules/php5.cxx index bf3ce4fa4..188f287d5 100644 --- a/Source/Modules/php5.cxx +++ b/Source/Modules/php5.cxx @@ -2525,6 +2525,10 @@ done: 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")) {