aboutsummaryrefslogtreecommitdiff
path: root/libraries/hyperscan/boost_distance.patch
blob: 36f13807eaf2f02cf023f88079ed47e15eea67cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/nfa/limex_compile.cpp	2018-10-27 20:19:18.832643025 -0600
+++ src/nfa/limex_compile.cpp	2018-10-27 20:20:03.814690090 -0600
@@ -980,7 +980,7 @@
     // see if we've already seen it, otherwise add a new one.
     auto it = find(squash.begin(), squash.end(), sit->second);
     if (it != squash.end()) {
-        return verify_u32(distance(squash.begin(), it));
+        return verify_u32(std::distance(squash.begin(), it));
     }
     u32 idx = verify_u32(squash.size());
     squash.push_back(sit->second);
@@ -1007,7 +1007,7 @@
     auto it = search(begin(reports), end(reports), begin(my_reports),
                      end(my_reports));
     if (it != end(reports)) {
-        u32 offset = verify_u32(distance(begin(reports), it));
+        u32 offset = verify_u32(std::distance(begin(reports), it));
         DEBUG_PRINTF("reusing found report list at %u\n", offset);
         return offset;
     }