Debian Codegraph @

debian/patches/gcc-6-destructor-is-noexcept

raw
1 Description: In GCC6 (due to C++11) destructors are noexcept by default
2 Author: Michael Tautschnig <[email protected]>
3 Bug-Debian: https://bugs.debian.org/812262
4
5 ---
6 The information above should follow the Patch Tagging Guidelines, please
7 checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
8 are templates for supplementary fields that you might want to add:
9
10 Origin: <vendor|upstream|other>, <url of original patch>
11 Bug: <url in upstream bugtracker>
12 Bug-Debian: https://bugs.debian.org/<bugnumber>
13 Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
14 Forwarded: <no|not-needed|url proving that it has been forwarded>
15 Reviewed-By: <name and email of someone who approved the patch>
16 Last-Update: <YYYY-MM-DD>
17
18 --- diagnostics-0.3.3.orig/diagnostics/macros/invariance_annotation.hpp
19 +++ diagnostics-0.3.3/diagnostics/macros/invariance_annotation.hpp
20 @@ -63,7 +63,7 @@ class Class_Invariance_Guard_Throw
21 {
22 public:
23 explicit inline Class_Invariance_Guard_Throw(CLASS const * const object);
24 - inline ~Class_Invariance_Guard_Throw();
25 + inline ~Class_Invariance_Guard_Throw() noexcept(false);
26 inline void no_final_check() { m_final_check=false; }
27 private:
28 Class_Invariance_Guard_Throw(Class_Invariance_Guard_Throw const & other);
29 @@ -83,7 +83,7 @@ Class_Invariance_Guard_Throw<CLASS>::Cla
30 }
31
32 template<typename CLASS>
33 -Class_Invariance_Guard_Throw<CLASS>::~Class_Invariance_Guard_Throw()
34 +Class_Invariance_Guard_Throw<CLASS>::~Class_Invariance_Guard_Throw() noexcept(false)
35 {
36 if(m_final_check) (m_object.m_class_invariance)();
37 }