summaryrefslogtreecommitdiff
path: root/dev-libs/beecrypt/files/beecrypt-4.2.1-c++11-allow-throw-in-destructors.patch
blob: 0cb291d8ff15c69bea2d89e7d503a5fc853d0914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- beecrypt-4.2.1/include/beecrypt/c++/lang/Object.h.old	2016-10-12 18:40:10.878868563 -0400
+++ beecrypt-4.2.1/include/beecrypt/c++/lang/Object.h	2016-10-12 19:17:22.508857979 -0400
@@ -145,7 +145,11 @@
 					waiter*       prev;
 
 					waiter(bc_threadid_t owner, unsigned int lock_count);
+#if __cplusplus < 201103L
 					~waiter();
+#else
+					~waiter() noexcept(false);
+#endif
 				};
 
 				waiter* _lock_head;
--- beecrypt-4.2.1/c++/lang/Object.cxx.old	2016-10-12 18:40:39.024665316 -0400
+++ beecrypt-4.2.1/c++/lang/Object.cxx	2016-10-12 19:14:41.630529720 -0400
@@ -767,6 +767,9 @@
 }
 
 Object::FairMonitor::waiter::~waiter()
+#if __cplusplus >= 201103L
+noexcept(false)
+#endif
 {
 	#if WIN32
 	if (!CloseHandle(event))