Skip to content

Commit

Permalink
Add function to get number of banks re #9260
Browse files Browse the repository at this point in the history
This function presently only works when this number has a single digit. lexical_cast<int> does not accept space characters.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Apr 11, 2014
1 parent ac48a05 commit 161da83
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -198,7 +198,7 @@ namespace DataHandling
// line too short
return -1;
}
return boost::lexical_cast<int>(lines[i].substr(lookFor.size(),3)); // Found
return boost::lexical_cast<int>(lines[i].substr(lookFor.size()+2,1)); // Found
}
}
return 0;
Expand Down

0 comments on commit 161da83

Please sign in to comment.