From 5fd5811b75a849351002569dc196ea55aab906e0 Mon Sep 17 00:00:00 2001
From: Thibault Hallouin <thibault.hallouin@inrae.fr>
Date: Wed, 19 Apr 2023 13:45:36 +0200
Subject: [PATCH] use character overload

---
 include/evalhyd/detail/masks.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/evalhyd/detail/masks.hpp b/include/evalhyd/detail/masks.hpp
index 8a2fa4d..a0706c5 100644
--- a/include/evalhyd/detail/masks.hpp
+++ b/include/evalhyd/detail/masks.hpp
@@ -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));
-- 
GitLab