Browse Source

[Minor] One more compatibility fix

tags/3.6
Vsevolod Stakhov 10 months ago
parent
commit
06f52fae3a
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libutil/cxx/util.hxx

+ 1
- 1
src/libutil/cxx/util.hxx View File

@@ -105,7 +105,7 @@ inline auto string_split_on(const S &input, std::string_view::value_type chr) ->
while (*pos == chr && pos != input.end()) {
++pos;
}
auto last = std::string_view{pos, std::end(input)};
auto last = std::string_view{pos, static_cast<std::size_t>(std::distance(pos, std::end(input)))};

return {first, last};
}

Loading…
Cancel
Save