Commit 5fd5811b authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

use character overload

No related merge requests found
Pipeline #46394 passed with stage
in 4 minutes and 1 second
Showing with 3 additions and 3 deletions
+3 -3
......@@ -123,12 +123,12 @@ namespace evalhyd
const std::smatch & m = *j;
// check whether it is a range of indices, or an index
if (m[0].str().find(":") != std::string::npos)
if (m[0].str().find(':') != std::string::npos)
{
// it is a range of indices (i.e. t{#:#})
std::string s_ = m[0].str();
std::string beg = s_.substr(0, s_.find(":"));
std::string end = s_.substr(s_.find(":") + 1);
std::string beg = s_.substr(0, s_.find(':'));
std::string end = s_.substr(s_.find(':') + 1);
// generate sequence of integer indices from range
std::vector<int> vi(std::stoi(end) - std::stoi(beg));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment