mmseq/mmseq-iostream-c++11.patch

13 lines
594 B
Diff
Raw Normal View History

diff -ur mmseq-1.0.8a/src/hitsio.cpp mmseq-1.0.8a.new/src/hitsio.cpp
--- mmseq-1.0.8a/src/hitsio.cpp 2014-01-09 22:45:54.000000000 +0000
+++ mmseq-1.0.8a.new/src/hitsio.cpp 2016-02-12 09:46:01.800529284 +0000
@@ -343,7 +343,7 @@
bool HitsfileReader::readReadMapRecordTranscriptIDSchema0(string &transcriptID) {
if ((ifs.eof()) || (ifs.peek() == '>')) { return false; }
- return(getline(ifs, transcriptID));
+ return(static_cast<bool>(getline(ifs, transcriptID)));
}
void HitsfileReader::readHeaderSchema1(vector<string> *transcriptName, map<string, double> *transcriptEffectiveLength,