mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Use std::distance explicitly to avoid ambiguity with boost
This commit is contained in:
parent
da4a2bd828
commit
8a0e4f8249
@ -980,7 +980,7 @@ u32 addSquashMask(const build_info &args, const NFAVertex &v,
|
||||
// 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 @@ u32 addReports(const flat_set<ReportID> &r, vector<ReportID> &reports,
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user