aboutsummaryrefslogtreecommitdiff
blob: 75942efb51ea142904b95600208db327dddbc12d (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
30
31
32
fix compilation errors with Intel compilers:
error: no operator "=" matches these operands
author: Ward Poelmans
--- bowtie-1.2.2/hit.h	2018-01-24 12:57:47.135575442 +0100
+++ bowtie-1.2.2/hit.h	2018-01-24 12:57:58.615869774 +0100
@@ -640,10 +640,26 @@
 			s.moveTo(btString);
 		}
 
+		batch(const batch &other)
+                {
+                    batchId = other.batchId;
+                    isWritten = other.isWritten;
+                    btString = other.btString;
+                }
+
 		bool operator<(const batch& other) const {
 			return batchId < other.batchId;
 		}
 
+		batch& operator=(batch&& other) {
+			if (&other != this) {
+				batchId = other.batchId;
+				isWritten = other.isWritten;
+				other.btString.moveTo(btString);
+			}
+			return *this;
+		}
+
 		batch& operator=(batch& other) {
 			if (&other != this) {
 				batchId = other.batchId;