Skip to content

Commit

Permalink
Fixed - compiler error in bamtools_split. Snuck in a C++11 vector met…
Browse files Browse the repository at this point in the history
…hod.
  • Loading branch information
pezmaster31 committed Jul 5, 2016
1 parent 8df1a3e commit 6622c25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/toolkit/bamtools_split.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ bool SplitTool::SplitToolPrivate::SplitListTagImpl(BamAlignment& al) {
else {
// make list label from tag data
stringstream listTagLabelStream;
typename TagValueType::const_iterator tagValueIter = currentValue.cbegin();
typename TagValueType::const_iterator tagValueEnd = currentValue.cend();
typename TagValueType::const_iterator tagValueIter = currentValue.begin();
typename TagValueType::const_iterator tagValueEnd = currentValue.end();
for (; tagValueIter != tagValueEnd; ++tagValueIter)
listTagLabelStream << (*tagValueIter) << m_settings->ListTagDelimiter;
listTagLabel = listTagLabelStream.str();
Expand All @@ -514,7 +514,7 @@ bool SplitTool::SplitToolPrivate::SplitListTagImpl(BamAlignment& al) {
writerIter = outputFiles.find(listTagLabel);

// if not found, create one
if (writerIter == outputFiles.cend()) {
if (writerIter == outputFiles.end()) {

// open new BamWriter, save first alignment
stringstream outputFilenameStream;
Expand Down

0 comments on commit 6622c25

Please sign in to comment.