summaryrefslogtreecommitdiff
path: root/sci-biology/bowtie/files/bowtie-2.2.9-fix-c++14.patch
blob: cd2a67b6a52bbce160435b88ca2c314716ac7421 (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
27
28
29
Fix building with C++14, which errors out due to differing semantics between C++98
and C++14 with regards to allowing destructors to throw exceptions.
See also: https://bugs.gentoo.org/show_bug.cgi?id=593966

--- a/blockwise_sa.h
+++ b/blockwise_sa.h
@@ -87,7 +87,11 @@
 	_logger(__logger)
 	{ }
 
-	virtual ~BlockwiseSA() { }
+	virtual ~BlockwiseSA()
+#if __cplusplus >= 201103L
+	noexcept(false)
+#endif
+	{ }
 
 	/**
 	 * Get the next suffix; compute the next bucket if necessary.
@@ -216,6 +220,9 @@
     { _randomSrc.init(__seed); reset(); }
     
     ~KarkkainenBlockwiseSA()
+#if __cplusplus >= 201103L
+    noexcept(false)
+#endif
     {
 #ifdef WITH_TBB
 		    tbb_grp.wait();